diff --git a/app/Controllers/Common/CommonController.php b/app/Controllers/Common/CommonController.php index 0cd8847..4eeb847 100644 --- a/app/Controllers/Common/CommonController.php +++ b/app/Controllers/Common/CommonController.php @@ -286,13 +286,12 @@ class CommonController extends BaseController } protected function batchjob_procedure() { + $uids = $this->request->getVar('batchjob_uids'); + if (!is_array($uids) || count($uids) === 0) { + alert_CommonHelper($this->_viewDatas['title'] . '에서 변경할 항목(uid)이 선택되지 않았습니다.', 'back'); + } $message = ""; - $uids = array(); try { - $uids = $this->request->getVar('batchjob_uids'); - if (!is_array($uids) || count($uids) === 0) { - throw new \Exception($this->_viewDatas['title'] . '에서 변경할 항목(uid)이 선택되지 않았습니다.'); - } $this->batchjob_init(); foreach ($uids as $uid) { $entity = $this->_model->getEntity($uid);