fixed after some recent updates not working file-upload in etemplate

This commit is contained in:
Ralf Becker 2006-10-16 20:01:31 +00:00
parent 11db342084
commit 0d1c4664c3

View File

@ -1645,7 +1645,7 @@
* @param array $to_process list of widgets/form-fields to process * @param array $to_process list of widgets/form-fields to process
* @param string $cname basename of our returnt content (same as in call to show) * @param string $cname basename of our returnt content (same as in call to show)
* @return int number of validation errors (the adjusted content is returned by the var-param &$content !) * @return int number of validation errors (the adjusted content is returned by the var-param &$content !)
*/ */
function process_show(&$content,$to_process,$cname='') function process_show(&$content,$to_process,$cname='')
{ {
if (!isset($content) || !is_array($content) || !is_array($to_process)) if (!isset($content) || !is_array($content) || !is_array($to_process))
@ -1677,7 +1677,7 @@
$attr = array(); $attr = array();
} }
$value = $this->get_array($content_in,$form_name,True,$GLOBALS['egw_info']['flags']['currentapp'] == 'etemplate' ? false : true ); $value = $this->get_array($content_in,$form_name,True,$GLOBALS['egw_info']['flags']['currentapp'] == 'etemplate' ? false : true );
if($value === false) continue; if($value === false && $type != 'file') continue; // file is in $_FILES and not in $content_in
if (isset($attr['blur']) && $attr['blur'] == $value) if (isset($attr['blur']) && $attr['blur'] == $value)
{ {