mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 09:04:38 +02:00
e107::unserialize() will now return the array if the input is an array. Additional form-handler tests added for type: media, file and files. Admin-ui can now manage a change of field type from 'array' to 'json' without additional changes needed.
This commit is contained in:
@@ -2108,7 +2108,7 @@ class e_front_model extends e_model
|
||||
{
|
||||
$d = $this->getDataFields();
|
||||
|
||||
if(!empty($d[$key]) && ($d[$key] == 'array'))
|
||||
if(!empty($d[$key]) && ($d[$key] === 'array' || $d[$key] === 'json'))
|
||||
{
|
||||
return e107::unserialize($this->getData((string) $key, $default, $index));
|
||||
}
|
||||
|
Reference in New Issue
Block a user