set post_process for an extension only if the extension has a post_process funktion, else it might overwright the normal post_process

This commit is contained in:
Ralf Becker 2002-10-12 22:37:29 +00:00
parent 74248930c5
commit 61aa0d4c58

View File

@ -717,7 +717,7 @@
}
break;
}
if ($ext_type && !$readonly) // extension-processing need to be after all other and only with diff. name
if ($ext_type && !$readonly && $this->haveExtension($ext_type,'post_process')) // extension-processing need to be after all other and only with diff. name
{ // unset it first, if it is already set, to be after the other widgets of the ext.
unset($GLOBALS['phpgw_info']['etemplate']['to_process'][$form_name]);
$GLOBALS['phpgw_info']['etemplate']['to_process'][$form_name] = 'ext-'.$ext_type;