From 32ed6567890a5751a614f4bb744d2e30e88db62d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 19 Apr 2009 08:45:00 +0000 Subject: [PATCH] Fixed: an error is raised when no tab is available on project settings (#3179). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2674 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/settings.rhtml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/views/projects/settings.rhtml b/app/views/projects/settings.rhtml index c7b0f5006..e8be1a091 100644 --- a/app/views/projects/settings.rhtml +++ b/app/views/projects/settings.rhtml @@ -1,6 +1,8 @@

<%=l(:label_settings)%>

<% tabs = project_settings_tabs %> + +<% if tabs.any? %> <% selected_tab = params[:tab] ? params[:tab].to_s : tabs.first[:name] %>
@@ -20,5 +22,8 @@ :style => (tab[:name] != selected_tab ? 'display:none' : nil), :class => 'tab-content') %> <% end -%> +<% else %> +

<%= l(:label_no_data) %>

+<% end %> <% html_title(l(:label_settings)) -%> -- 2.39.5