cfmgrv4 init...3

This commit is contained in:
최준흠 2024-10-16 19:19:01 +09:00
parent 40e4e600a9
commit 6145dc68a6

View File

@ -126,6 +126,8 @@ class RecordHelper extends CommonHelper
{ {
switch ($action) { switch ($action) {
case 'modify': case 'modify':
$checkbox = "";
if ($viewDatas['entity']->type == 'A' && $viewDatas['entity']->fixed != 'on') {
$pk = $viewDatas['entity']->getPK(); $pk = $viewDatas['entity']->getPK();
$oldBatchJobUids = old("batchjob_uids") ?? []; $oldBatchJobUids = old("batchjob_uids") ?? [];
$oldBatchJobUids = is_array($oldBatchJobUids) ? $oldBatchJobUids : [$oldBatchJobUids]; $oldBatchJobUids = is_array($oldBatchJobUids) ? $oldBatchJobUids : [$oldBatchJobUids];
@ -136,6 +138,7 @@ class RecordHelper extends CommonHelper
"class" => "batchjobuids_checkboxs", "class" => "batchjobuids_checkboxs",
"checked" => in_array($pk, $oldBatchJobUids) "checked" => in_array($pk, $oldBatchJobUids)
]); ]);
}
$extras = ["target" => "_self", ...$extras]; $extras = ["target" => "_self", ...$extras];
$action = $checkbox . anchor( $action = $checkbox . anchor(
current_url() . "/sync/" . $viewDatas['entity']->getPK(), current_url() . "/sync/" . $viewDatas['entity']->getPK(),