diff --git a/app/Controllers/MVController.php b/app/Controllers/MVController.php
index 69cd136..8e890c5 100644
--- a/app/Controllers/MVController.php
+++ b/app/Controllers/MVController.php
@@ -234,17 +234,16 @@ abstract class MVController extends CommonController
try {
//변경할 UIDS
$uids = $this->request->getVar('batchjob_uids[]');
- if (!count($uids)) {
+ if ($uids === null || !count($uids)) {
throw new \Exception("지정된 정보가 없습니다.");
}
- $this->entitys = [];
foreach ($uids as $uid) {
$this->modify_process($uid);
- $this->entitys = $this->entity;
}
$this->getModel()->transCommit();
- log_message("notice", __FUNCTION__ . "=> 작업을 완료하였습니다.");
- $this->session->setFlashdata(SESSION_NAMES['RETURN_MSG'], __FUNCTION__ . " => 작업을 완료하였습니다.\n");
+ $message = "일괄처리 작업을 완료하였습니다.";
+ log_message("notice", $message);
+ $this->session->setFlashdata(SESSION_NAMES['RETURN_MSG'], $message);
return redirect()->to($this->session->getFlashdata(SESSION_NAMES['RETURN_URL']) ?: "/");
} catch (\Exception $e) {
//Transaction Rollback
@@ -348,7 +347,10 @@ abstract class MVController extends CommonController
//Sorting 처리
$this->order_field = $this->request->getVar('order_field') ?: DEFAULTS['EMPTY'];
$this->order_value = $this->request->getVar('order_value') ?: DEFAULTS['EMPTY'];
- $this->getModel()->setList_OrderBy($this->order_field !== DEFAULTS['EMPTY'] && $this->order_value !== DEFAULTS['EMPTY'] ? "{$this->order_field} {$this->order_value}" : "");
+ $this->getModel()->setList_OrderBy(
+ $this->order_field !== DEFAULTS['EMPTY'] &&
+ $this->order_value !== DEFAULTS['EMPTY'] ? "{$this->order_field} {$this->order_value}" : ""
+ );
if ($this->page) {
$this->getModel()->limit(
$this->per_page,
diff --git a/app/Views/admin/cloudflare/account/index.php b/app/Views/admin/cloudflare/account/index.php
index da04a29..e74bdf3 100644
--- a/app/Views/admin/cloudflare/account/index.php
+++ b/app/Views/admin/cloudflare/account/index.php
@@ -3,7 +3,7 @@
= $this->include('templates/' . $viewDatas['layout'] . '/index_top'); ?>
-= form_open("", $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
+= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
@@ -43,7 +43,7 @@
= getFieldForm_AccountHelper($field, DEFAULTS['EMPTY'], $viewDatas) ?>
- = form_submit("", '일괄처리', ['formaction' => current_url() . '/batchjob', "class" => "btn btn-outline btn-warning"]) ?>
+ = form_submit("", '일괄처리', ["class" => "btn btn-outline btn-warning"]) ?>
= getListButton_AccountHelper('create', $viewDatas, ["style" => "cursor:pointer"]) ?>
diff --git a/app/Views/admin/cloudflare/auth/index.php b/app/Views/admin/cloudflare/auth/index.php
index 23fd24e..7a33ef9 100644
--- a/app/Views/admin/cloudflare/auth/index.php
+++ b/app/Views/admin/cloudflare/auth/index.php
@@ -3,7 +3,7 @@
= $this->include('templates/' . $viewDatas['layout'] . '/index_top'); ?>
-= form_open("", $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
+= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
@@ -40,7 +40,7 @@
= getFieldForm_AuthHelper($field, DEFAULTS['EMPTY'], $viewDatas) ?>
- = form_submit("", '일괄처리', ['formaction' => current_url() . '/batchjob', "class" => "btn btn-outline btn-warning"]) ?>
+ = form_submit("", '일괄처리', ["class" => "btn btn-outline btn-warning"]) ?>
= getListButton_AuthHelper('create', $viewDatas, ["style" => "cursor:pointer"]) ?>
diff --git a/app/Views/admin/cloudflare/record/index.php b/app/Views/admin/cloudflare/record/index.php
index f11d4cb..63b3737 100644
--- a/app/Views/admin/cloudflare/record/index.php
+++ b/app/Views/admin/cloudflare/record/index.php
@@ -3,7 +3,7 @@
= $this->include('templates/' . $viewDatas['layout'] . '/index_top'); ?>
-= form_open("", $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
+= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
@@ -43,7 +43,7 @@
= getFieldForm_RecordHelper($field, DEFAULTS['EMPTY'], $viewDatas) ?>
- = form_submit("", '일괄처리', ['formaction' => current_url() . '/batchjob', "class" => "btn btn-outline btn-warning"]) ?>
+ = form_submit("", '일괄처리', ["class" => "btn btn-outline btn-warning"]) ?>
= getListButton_RecordHelper('create', $viewDatas, ["style" => "cursor:pointer"]) ?>
diff --git a/app/Views/admin/cloudflare/zone/index.php b/app/Views/admin/cloudflare/zone/index.php
index 243eeb2..5d5887e 100644
--- a/app/Views/admin/cloudflare/zone/index.php
+++ b/app/Views/admin/cloudflare/zone/index.php
@@ -3,7 +3,7 @@
= $this->include('templates/' . $viewDatas['layout'] . '/index_top'); ?>
-= form_open("", $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
+= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
@@ -43,7 +43,7 @@
= getFieldForm_ZoneHelper($field, DEFAULTS['EMPTY'], $viewDatas) ?>
- = form_submit("", '일괄처리', ['formaction' => current_url() . '/batchjob', "class" => "btn btn-outline btn-warning"]) ?>
+ = form_submit("", '일괄처리', ["class" => "btn btn-outline btn-warning"]) ?>
= getListButton_ZoneHelper('create', $viewDatas, ["style" => "cursor:pointer"]) ?>
diff --git a/app/Views/admin/mapurl/index.php b/app/Views/admin/mapurl/index.php
index 0765c8d..d92ecb5 100644
--- a/app/Views/admin/mapurl/index.php
+++ b/app/Views/admin/mapurl/index.php
@@ -3,7 +3,7 @@
= $this->include('templates/' . $viewDatas['layout'] . '/index_top'); ?>
-= form_open("", $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
+= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
@@ -40,7 +40,7 @@
= getFieldForm_MapurlHelper($field, DEFAULTS['EMPTY'], $viewDatas) ?>
- = form_submit("", '일괄처리', ['formaction' => current_url() . '/batchjob', "class" => "btn btn-outline btn-warning"]) ?>
+ = form_submit("", '일괄처리', ["class" => "btn btn-outline btn-warning"]) ?>
= getListButton_MapurlHelper('create', $viewDatas, ["style" => "cursor:pointer"]) ?>
diff --git a/app/Views/admin/user/index.php b/app/Views/admin/user/index.php
index 6999fc1..c2a3755 100644
--- a/app/Views/admin/user/index.php
+++ b/app/Views/admin/user/index.php
@@ -3,7 +3,7 @@
= $this->include('templates/' . $viewDatas['layout'] . '/index_top'); ?>
-= form_open("", $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
+= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
@@ -40,7 +40,7 @@
= getFieldForm_UserHelper($field, DEFAULTS['EMPTY'], $viewDatas) ?>
- = form_submit("", '일괄처리', ['formaction' => current_url() . '/batchjob', "class" => "btn btn-outline btn-warning"]) ?>
+ = form_submit("", '일괄처리', ["class" => "btn btn-outline btn-warning"]) ?>
= getListButton_UserHelper('create', $viewDatas, ["style" => "cursor:pointer"]) ?>