forked from extern/egroupware
don't set items witch are not submitted from UA in content array on callback.
This is usefull if u want to process just subsets of a form e.g. by xajax
This commit is contained in:
parent
7f79a72d98
commit
4648c5025e
@ -634,11 +634,12 @@
|
||||
{
|
||||
return False;
|
||||
}
|
||||
if(!isset($pos[$idx])) return false;
|
||||
$pos = &$pos[$idx];
|
||||
}
|
||||
return $pos;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* unsets $arr[$idx]
|
||||
*
|
||||
|
@ -1664,7 +1664,7 @@
|
||||
}
|
||||
$GLOBALS['egw_info']['etemplate']['validation_errors'] = array();
|
||||
$this->canceled = $this->button_pressed = False;
|
||||
|
||||
|
||||
foreach($to_process as $form_name => $type)
|
||||
{
|
||||
if (is_array($type))
|
||||
@ -1677,7 +1677,8 @@
|
||||
$attr = array();
|
||||
}
|
||||
$value = $this->get_array($content_in,$form_name,True);
|
||||
|
||||
if($value === false) continue;
|
||||
|
||||
if (isset($attr['blur']) && $attr['blur'] == $value)
|
||||
{
|
||||
$value = ''; // blur-values is equal to emtpy
|
||||
|
Loading…
Reference in New Issue
Block a user