From 7bf4e05c4ba90fb871c838a3e69026cef7b47fd4 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Tue, 17 Jan 2012 10:33:05 +0100 Subject: [PATCH] SONAR-3143 Fix edit/create button name on action plan page The title of the "Create Action Plan" button is wrongly changed when the action plan can't be created --- .../main/webapp/WEB-INF/app/views/action_plans/_new.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/action_plans/_new.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/action_plans/_new.html.erb index a176974e9e7..838e644b9fb 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/action_plans/_new.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/action_plans/_new.html.erb @@ -4,7 +4,7 @@ -

<%= @action_plan ? message('action_plans.edit_action_plan') : message('action_plans.create_new_action_plan') -%>

+

<%= @action_plan && @action_plan.id ? message('action_plans.edit_action_plan') : message('action_plans.create_new_action_plan') -%>

@@ -31,7 +31,7 @@ - + -- 2.39.5