From 9ec1e20f7f39119b0fedca9a19b58045fba9754d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0git=20config=20git=20config=20-?= =?UTF-8?q?-helpgit=20config=20--global=20user=2Ename=20=EC=B5=9C=EC=A4=80?= =?UTF-8?q?=ED=9D=A0?= Date: Thu, 22 Jun 2023 05:25:10 +0900 Subject: [PATCH] cfmgrv3 init...3 --- app/Controllers/Common/CommonController.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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);