aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/newapplication_helper.rb
diff options
context:
space:
mode:
authorRobert2018-01-08 10:09:37 +0100
committerRobert2018-01-08 10:09:37 +0100
commit0a69d409cded29a45ee3857f0a49c9a7a51d858a (patch)
tree84f8eaef50642b5f89ccce2fa401b3c5da4cafa3 /app/helpers/newapplication_helper.rb
parentfb9eb367b9c56c19df7f2e2301f4a417f5409d6d (diff)
downloadchouette-core-0a69d409cded29a45ee3857f0a49c9a7a51d858a.tar.bz2
Fixes: #5413@1h; Specs implemented
Diffstat (limited to 'app/helpers/newapplication_helper.rb')
-rw-r--r--app/helpers/newapplication_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/newapplication_helper.rb b/app/helpers/newapplication_helper.rb
index df19113db..3100450c9 100644
--- a/app/helpers/newapplication_helper.rb
+++ b/app/helpers/newapplication_helper.rb
@@ -147,11 +147,11 @@ module NewapplicationHelper
content_tag :li, link_to(t("actions.#{action}"), polymorph_url)
end
elsif action == :archive
- unless item.archived?
+ unless item.archived_or_finalised?
content_tag :li, link_to(t("actions.#{action}"), polymorph_url, method: :put)
end
elsif action == :unarchive
- if item.archived?
+ if item.archived_or_finalised?
content_tag :li, link_to(t("actions.#{action}"), polymorph_url, method: :put)
end
else