1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 04:38:27 +01:00

Issue #5016 - Avoid sending 'Array' in hidden field.

This commit is contained in:
camer0n 2023-06-20 10:04:07 -07:00
parent 8324e24776
commit 23df6c1072

View File

@ -6543,7 +6543,14 @@ var_dump($select_options);*/
$attributes['readParms'] = $attributes['writeParms'];
}
return $this->renderValue($key, $value, $attributes).$this->hidden($key, $value); //
$ret = $this->renderValue($key, $value, $attributes);
// if(!is_array($value)) // avoid value of 'Array'
{
$ret .= $this->hidden($key, $value); // subject to removal - in most cases, there's no point posting fields that don't need to be saved.
}
return $ret;
}
// FIXME standard - writeParams['__options'] is introduced for list elements, bundle adding to writeParms is non reliable way