mirror of https://gitee.com/karson/fastadmin.git
commit
44887b8aec
|
|
@ -231,15 +231,14 @@ trait Backend
|
||||||
$this->error(__("Invalid parameters"));
|
$this->error(__("Invalid parameters"));
|
||||||
}
|
}
|
||||||
$ids = $ids ?: $this->request->post('ids');
|
$ids = $ids ?: $this->request->post('ids');
|
||||||
if (empty($ids)) {
|
|
||||||
$this->error(__('Parameter %s can not be empty', 'ids'));
|
|
||||||
}
|
|
||||||
$pk = $this->model->getPk();
|
$pk = $this->model->getPk();
|
||||||
$adminIds = $this->getDataLimitAdminIds();
|
$adminIds = $this->getDataLimitAdminIds();
|
||||||
if (is_array($adminIds)) {
|
if (is_array($adminIds)) {
|
||||||
$this->model->where($this->dataLimitField, 'in', $adminIds);
|
$this->model->where($this->dataLimitField, 'in', $adminIds);
|
||||||
}
|
}
|
||||||
$this->model->where($pk, 'in', $ids);
|
if ($ids) {
|
||||||
|
$this->model->where($pk, 'in', $ids);
|
||||||
|
}
|
||||||
$count = 0;
|
$count = 0;
|
||||||
Db::startTrans();
|
Db::startTrans();
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue