mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Issue #5016 - Avoid sending 'Array' in hidden field.
This commit is contained in:
@@ -6543,7 +6543,14 @@ var_dump($select_options);*/
|
|||||||
$attributes['readParms'] = $attributes['writeParms'];
|
$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
|
// FIXME standard - writeParams['__options'] is introduced for list elements, bundle adding to writeParms is non reliable way
|
||||||
|
Reference in New Issue
Block a user