"fixed broken extended search in addressbook:

form get's summited via ajax (without the _FILES array), which caused the process_show for 'files' to stall the the ajax request
--> get's ignored now"
This commit is contained in:
Ralf Becker 2009-03-30 16:36:25 +00:00
parent 9937f44e5a
commit 1dbec93dc9

View File

@ -2049,6 +2049,7 @@ class etemplate extends boetemplate
$file = array();
foreach(array('tmp_name','type','size','name','error') as $part)
{
if (!is_array($_FILES[$name])) break 2; // happens eg. in forms set via xajax, which do not upload files
$file[$part] = $this->get_array($_FILES[$name],$part.$index.($multiple ? "[$i]" : ''));
}
if (!$multiple) $file['path'] = $this->get_array($content_in,substr($form_name,0,-1).'_path]');