update
							parent
							
								
									776b715764
								
							
						
					
					
						commit
						f917fc5131
					
				|  | @ -789,14 +789,22 @@ if (!function_exists('formKriteria')) { | ||||||
|                         $valueOld = json_decode(@$penilaianOld->value); |                         $valueOld = json_decode(@$penilaianOld->value); | ||||||
|                          |                          | ||||||
|                         foreach($option as $keyOption => $dataOption){ |                         foreach($option as $keyOption => $dataOption){ | ||||||
|                             if(@$value){ |                             // if(@$value){
 | ||||||
|                                 if(in_array($dataOption, (is_array(@$value) ? @$value : array(@$value)))){ |                             //     if(in_array($dataOption, (is_array(@$value) ? @$value : array(@$value)))){
 | ||||||
|                                     $checked = 'checked'; |                             //         $checked = 'checked';
 | ||||||
|                                 } |                             //     }
 | ||||||
|                             }else{ |                             // }else{
 | ||||||
|                                 if(in_array($dataOption, (is_array(@$valueOld) ? @$valueOld : array(@$valueOld)))){ |                             //     if(in_array($dataOption, (is_array(@$valueOld) ? @$valueOld : array(@$valueOld)))){
 | ||||||
|                                     $checked = 'checked'; |                             //         $checked = 'checked';
 | ||||||
|                                 } |                             //     }
 | ||||||
|  |                             // }
 | ||||||
|  | 
 | ||||||
|  |                             $checked = ''; | ||||||
|  | 
 | ||||||
|  |                             $selectedValues = is_array($value) ? $value : (isset($value) ? [$value] : (is_array($valueOld) ? $valueOld : [$valueOld])); | ||||||
|  | 
 | ||||||
|  |                             if (in_array($dataOption, $selectedValues)) { | ||||||
|  |                                 $checked = 'checked'; | ||||||
|                             } |                             } | ||||||
| 
 | 
 | ||||||
|                             $key = 'number_'.$keyKriteria.'_'.$keyOption; |                             $key = 'number_'.$keyKriteria.'_'.$keyOption; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue