mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Issue #5016 - Avoid sending 'Array' in hidden field.
This commit is contained in:
parent
8324e24776
commit
23df6c1072
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user