From c1322442a58521e037a18d0327fe9acf88ba44fe Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 17 Jan 2014 10:52:12 +0000 Subject: [PATCH] Disable history tab in resources for new entries --- resources/inc/class.resources_ui.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/inc/class.resources_ui.inc.php b/resources/inc/class.resources_ui.inc.php index 4602492549..ae267e6ad4 100755 --- a/resources/inc/class.resources_ui.inc.php +++ b/resources/inc/class.resources_ui.inc.php @@ -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;