diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-07-10 14:13:46 +0600 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-07-10 16:23:48 +0600 |
commit | f01aed13efe14f846b2b1edbdc071582b71e42f0 (patch) | |
tree | 98df8bab039c7aab1cfa8fe4bbd3e1de648a7f56 | |
parent | a197d468f828d98a0cb1a53a1d589dd8d4c44691 (diff) | |
download | sonarqube-f01aed13efe14f846b2b1edbdc071582b71e42f0.tar.gz sonarqube-f01aed13efe14f846b2b1edbdc071582b71e42f0.zip |
Issue when trying to plan an issue and no action plan exists
-rw-r--r-- | sonar-core/src/main/resources/org/sonar/l10n/core.properties | 3 | ||||
-rw-r--r-- | sonar-server/src/main/hbs/issues/plan-form.hbs | 8 |
2 files changed, 3 insertions, 8 deletions
diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index ec0bbba4ae5..356976050a2 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -634,8 +634,7 @@ issue.do_plan=Plan issue.plan.submit=Plan issue.unplanned=Unplanned issue.unplan.submit=Unplan -issue.plan.error.plan_must_be_created_first_for_admin=You must <a href="{0}">define</a> at least one action plan on this project. -issue.plan.error.plan_must_be_created_first_for_other=At least one action plan must be created on this project. Please contact your project administrator. +issue.plan.error.plan_must_be_created_first=At least one action plan must be created on this project. Please contact your project administrator if you don't have the permission to do it. issue.status.REOPENED=Reopened issue.status.RESOLVED=Resolved issue.status.OPEN=Open diff --git a/sonar-server/src/main/hbs/issues/plan-form.hbs b/sonar-server/src/main/hbs/issues/plan-form.hbs index 3d96e6e6a72..341068e5a96 100644 --- a/sonar-server/src/main/hbs/issues/plan-form.hbs +++ b/sonar-server/src/main/hbs/issues/plan-form.hbs @@ -11,10 +11,6 @@ </select> <input id="issue-plan-submit" type="submit" value="{{t 'issue.plan.submit'}}"> {{else}} - <% if is_admin? %> - <span class="error">{{t 'issue.plan.error.plan_must_be_created_first_for_admin'}}</span> - <% else %> - <span class="error">{{t 'issue.plan.error.plan_must_be_created_first_for_other'}}</span> - <% end %> + <span class="error">{{t 'issue.plan.error.plan_must_be_created_first'}}</span> {{/if}} -<a id="issue-plan-cancel" class="action">{{t 'cancel'}}</a>
\ No newline at end of file +<a id="issue-plan-cancel" class="action">{{t 'cancel'}}</a> |