1
0
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:
Cameron
2021-02-08 08:44:44 -08:00
parent 62815a965a
commit c32e5bf1e2
6 changed files with 86 additions and 41 deletions

View File

@@ -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));
}