mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-09 23:11:57 +01:00
In the rare case where the app specifies both select options in both the sel_options and the nextmatch options-name, try to avoid overwriting
This commit is contained in:
parent
4ac1cd196c
commit
fd41f7e4bc
@ -192,7 +192,11 @@ class etemplate_widget_nextmatch extends etemplate_widget
|
|||||||
if(strpos($name, 'options-') !== false)
|
if(strpos($name, 'options-') !== false)
|
||||||
{
|
{
|
||||||
$select = substr($name, 8);
|
$select = substr($name, 8);
|
||||||
self::$request->sel_options[$select] = $_value;
|
if(!self::$request->sel_options[$select])
|
||||||
|
{
|
||||||
|
self::$request->sel_options[$select] = array();
|
||||||
|
}
|
||||||
|
self::$request->sel_options[$select] += $_value;
|
||||||
// The client doesn't need them in content, but we can't unset them because
|
// The client doesn't need them in content, but we can't unset them because
|
||||||
// some apps don't send them on re-load, pulling them from the session
|
// some apps don't send them on re-load, pulling them from the session
|
||||||
//unset($value[$name]);
|
//unset($value[$name]);
|
||||||
|
Loading…
Reference in New Issue
Block a user