From 31d3c2c5ac756b4e5aee270bdd699114e2c354c3 Mon Sep 17 00:00:00 2001 From: ilhamwara Date: Tue, 8 Jul 2025 09:34:08 +0700 Subject: [PATCH] update --- app/Helpers/custom.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Helpers/custom.php b/app/Helpers/custom.php index 71070e8..9343d11 100644 --- a/app/Helpers/custom.php +++ b/app/Helpers/custom.php @@ -779,9 +779,10 @@ if (!function_exists('formKriteria')) { $option = json_decode($data->option); $value = json_decode(@$penilaian->value); $valueOld = json_decode(@$penilaianOld->value); + dd(@$value); foreach($option as $keyOption => $dataOption){ - + if(@$value){ if(in_array($dataOption, (is_array(@$value) ? @$value : array(@$value)))){ $checked = 'checked'; @@ -795,7 +796,7 @@ if (!function_exists('formKriteria')) { $key = 'number_'.$keyKriteria.'_'.$keyOption; $html .= '
'; - $html .= ''; + $html .= ''; $html .= ''; $html .= '
'; }