forked from extern/egroupware
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));
|
//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'][2]['A']['disabled'] = true;
|
||||||
$this->tmpl->children[0]['data'][3]['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))
|
if (is_array($content))
|
||||||
{
|
{
|
||||||
//echo '<pre style="text-align: left;">'; print_r($content); echo "</pre>\n";
|
//echo '<pre style="text-align: left;">'; print_r($content); echo "</pre>\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user