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:
Cornelius Weiß 2006-10-10 15:10:07 +00:00
parent 7f79a72d98
commit 4648c5025e
2 changed files with 5 additions and 3 deletions

View File

@ -634,11 +634,12 @@
{
return False;
}
if(!isset($pos[$idx])) return false;
$pos = &$pos[$idx];
}
return $pos;
}
/**
* unsets $arr[$idx]
*

View File

@ -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