mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:18:57 +01:00
Resources: Hide customfields tab for categories have no customfields
This commit is contained in:
parent
bfb335f7c3
commit
6b887efc4b
@ -576,8 +576,8 @@ class resources_ui
|
||||
}
|
||||
|
||||
// Disable custom tab if there are no custom fields defined
|
||||
$read_only['tabs']['custom'] = !(Api\Storage\Customfields::get('resources',true));
|
||||
$read_only['tabs']['history'] = ($content['history']['id'] != 0?false:true);
|
||||
$read_only['tabs']['custom'] = !(Api\Storage\Customfields::get('resources', true, $content['cat_id']));
|
||||
$read_only['tabs']['history'] = ($content['history']['id'] != 0 ? false : true);
|
||||
|
||||
$preserv = $content;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user