dbms_init...1
This commit is contained in:
parent
d89e976be2
commit
5484ef1ecf
@ -242,12 +242,14 @@ class CommonHelper
|
|||||||
throw new \Exception(__METHOD__ . "에서 {$field}의 field_options가 array형태가 아닙니다.");
|
throw new \Exception(__METHOD__ . "에서 {$field}의 field_options가 array형태가 아닙니다.");
|
||||||
}
|
}
|
||||||
// create, modify, create_form, modify_form일때 checkbox로 표시
|
// create, modify, create_form, modify_form일때 checkbox로 표시
|
||||||
if (in_array($viewDatas['control']['action'], ['create', 'modify', 'create_form', 'modify_form'])) {
|
if (in_array($viewDatas['control']['action'], ['create_form', 'modify_form'])) {
|
||||||
$forms = [];
|
$forms = [];
|
||||||
foreach ($viewDatas['control']['filter_optons'][$field] as $key => $filterEntity) {
|
foreach ($viewDatas['control']['filter_optons'][$field] as $key => $filterEntity) {
|
||||||
$values = is_array($value) ? $value : explode(DEFAULTS["DELIMITER_ROLE"], $value);
|
if ($key !== '') { // 빈값은 제외
|
||||||
//form_check에는 "class" => "form-control" 쓰면 않되거나 form-check를 써야함
|
$values = is_array($value) ? $value : explode(DEFAULTS["DELIMITER_ROLE"], $value);
|
||||||
$forms[] = form_checkbox("{$field}[]", $key, in_array($key, $values)) . $filterEntity->getTitle();
|
//form_check에는 "class" => "form-control" 쓰면 않되거나 form-check를 써야함
|
||||||
|
$forms[] = form_checkbox("{$field}[]", $key, in_array($key, $values)) . $filterEntity->getTitle();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$form = implode(" ", $forms);
|
$form = implode(" ", $forms);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user