feature #3077: Fix templates tab check

This commit is contained in:
Daniel Molina committed 2014-08-13 19:00:04 +02:00
1 parent 212381f4a8
commit 41be97f0df
1 file changed
+6 -2
+6 -2
View File
@@ -63,8 +63,12 @@ Config = {
},
"isTemplateCreationTabEnabled": function(template_tab_name){
var enabled = config['view']['tabs']['templates-tab']['template_creation_tabs'][template_tab_name];
return enabled;
if (config['view']['tabs']['templates-tab']){
var enabled = config['view']['tabs']['templates-tab']['template_creation_tabs'][template_tab_name];
return enabled;
} else {
return false;
}
},
"dashboardWidgets": function(per_row){