mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
"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:
parent
9937f44e5a
commit
1dbec93dc9
@ -2049,6 +2049,7 @@ class etemplate extends boetemplate
|
|||||||
$file = array();
|
$file = array();
|
||||||
foreach(array('tmp_name','type','size','name','error') as $part)
|
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]" : ''));
|
$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]');
|
if (!$multiple) $file['path'] = $this->get_array($content_in,substr($form_name,0,-1).'_path]');
|
||||||
|
Loading…
Reference in New Issue
Block a user