mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
dont load cfs for template from stylite app
This commit is contained in:
parent
bd7407ed88
commit
05a3ccb320
@ -111,10 +111,10 @@ class customfields_widget
|
||||
function pre_process($form_name,&$value,&$cell,&$readonlys,&$extension_data,etemplate $tmpl)
|
||||
{
|
||||
list($app) = explode('.',$tmpl->name);
|
||||
if ($this->appname == 'etemplate' || !$this->customfields || // if we are in the etemplate editor or the app has no cf's, load the cf's from the app the tpl belongs too
|
||||
($app && $app != $this->appname) ) // app changed
|
||||
// if we are in the etemplate editor or the app has no cf's, load the cf's from the app the tpl belongs too
|
||||
if ($app && $app != 'stylite' && $app != $this->appname && ($this->appname == 'etemplate' || !$this->customfields))
|
||||
{
|
||||
self::__construct(null,$app);
|
||||
self::__construct(null,$app); // app changed
|
||||
}
|
||||
list($type2,$use_private,$field_names) = explode(',',$cell['size'],3);
|
||||
$fields_with_vals=array();
|
||||
|
Loading…
Reference in New Issue
Block a user