Disable history tab in resources for new entries

This commit is contained in:
Hadi Nategh 2014-01-17 10:52:12 +00:00
parent 387035f76d
commit c1322442a5

View File

@ -561,6 +561,7 @@ class resources_ui
// Disable custom tab if there are no custom fields defined
$read_only['tabs']['custom'] = !(config::get_customfields('resources',true));
$read_only['tabs']['history'] = ($content['history']['id'] != 0?false:true);
$preserv = $content;