mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Fix custom types shown on all apps
This commit is contained in:
parent
b933b17446
commit
509482e81c
@ -73,7 +73,6 @@ class customfields
|
|||||||
$this->tmpl = new etemplate();
|
$this->tmpl = new etemplate();
|
||||||
// do we manage content-types?
|
// do we manage content-types?
|
||||||
if($this->tmpl->read($this->appname.'.admin.types')) $this->manage_content_types = true;
|
if($this->tmpl->read($this->appname.'.admin.types')) $this->manage_content_types = true;
|
||||||
|
|
||||||
$this->fields = config::get_customfields($this->appname,true);
|
$this->fields = config::get_customfields($this->appname,true);
|
||||||
$this->tmpl->read('admin.customfields');
|
$this->tmpl->read('admin.customfields');
|
||||||
|
|
||||||
@ -95,7 +94,7 @@ class customfields
|
|||||||
elseif(method_exists($this->tmpl, 'disableElement'))
|
elseif(method_exists($this->tmpl, 'disableElement'))
|
||||||
{
|
{
|
||||||
// et2
|
// et2
|
||||||
$this->tmpl->disableElement('admin.customfields.type', true);
|
$this->tmpl->disableElement('content_types', true);
|
||||||
}
|
}
|
||||||
if (is_array($content))
|
if (is_array($content))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user