Fixed a bug with idlist caused when we moved all the post data into the 'post' field

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@373 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-23 23:45:04 +00:00
parent 5cf40147d9
commit ce23bf5abd

View File

@@ -498,8 +498,8 @@ class AppController extends Controller {
}
if (isset($params['action']) && $params['action'] === 'idlist') {
if (count($params['idlist']))
$conditions[] = array($model->alias.'.'.$model->primaryKey => $params['idlist']);
if (count($params['post']['idlist']))
$conditions[] = array($model->alias.'.'.$model->primaryKey => $params['post']['idlist']);
else
$conditions[] = '0=1';
}