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:
@@ -498,8 +498,8 @@ class AppController extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isset($params['action']) && $params['action'] === 'idlist') {
|
if (isset($params['action']) && $params['action'] === 'idlist') {
|
||||||
if (count($params['idlist']))
|
if (count($params['post']['idlist']))
|
||||||
$conditions[] = array($model->alias.'.'.$model->primaryKey => $params['idlist']);
|
$conditions[] = array($model->alias.'.'.$model->primaryKey => $params['post']['idlist']);
|
||||||
else
|
else
|
||||||
$conditions[] = '0=1';
|
$conditions[] = '0=1';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user