main
ilhamwara 2025-04-29 14:56:32 +07:00
parent 7fdbc14f77
commit d864e63ed5
1 changed files with 1 additions and 1 deletions

View File

@ -695,7 +695,7 @@ if (!function_exists('formKriteria')) {
$key = 'number_'.$keyKriteria.'_'.$keyOption;
$html .= '<div class="custom-control custom-checkbox m-2">';
$html .= '<input type="checkbox" '.(@$value ? in_array($dataOption, @$value) ? 'checked' : '' : '').' class="custom-control-input is-required" id="'.$key.'" value="'.$dataOption.'" name="input_'.$data->key.'[]">';
$html .= '<input type="checkbox" '.(@$value ? in_array($dataOption, (is_array(@$value) ? @$value : array(@$value))) ? 'checked' : '' : '').' class="custom-control-input is-required" id="'.$key.'" value="'.$dataOption.'" name="input_'.$data->key.'[]">';
$html .= '<label class="custom-control-label" for="'.$key.'">'.$dataOption.'</label>';
$html .= '</div>';
}