Jump to content


Json Sean

Member Since 14 Sep 2017
Offline Last Active Dec 27 2017 09:16 AM
-----

#15517 Multiselect validation fails on v1.5.7

Posted Json Sean on 14 September 2017 - 08:46 AM

Modify file of 'system/libraries/Form_validation.php':

 

in the function "public function run($group = '')",before _execute action add codes like this:

 

...

 

if(in_array('required',$row['rules']) and is_array($row['postdata'])){
$row['postdata'] = json_encode($row['postdata'],JSON_UNESCAPED_UNICODE);
}

 

...
$this->_execute($row, $row['rules'], $row['postdata']);