mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Make customfield page not fail in et2
This commit is contained in:
parent
c19a3b6c5f
commit
369993d439
@ -87,11 +87,16 @@ class customfields
|
||||
//error_log( array2string($this->content_types));
|
||||
}
|
||||
}
|
||||
else
|
||||
elseif (!($this->tmpl instanceof etemplate_widget))
|
||||
{
|
||||
$this->tmpl->children[0]['data'][2]['A']['disabled'] = true;
|
||||
$this->tmpl->children[0]['data'][3]['A']['disabled'] = true;
|
||||
}
|
||||
elseif(method_exists($this->tmpl, 'disableElement'))
|
||||
{
|
||||
// et2
|
||||
$this->tmpl->disableElement('admin.customfields.type', true);
|
||||
}
|
||||
if (is_array($content))
|
||||
{
|
||||
//echo '<pre style="text-align: left;">'; print_r($content); echo "</pre>\n";
|
||||
|
Loading…
Reference in New Issue
Block a user