aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorRobert2018-01-09 10:09:28 +0100
committerRobert2018-01-09 10:09:28 +0100
commit7ea0a6079017c561aa8286198bd77b258cb2d240 (patch)
tree325c3b799bc6399ffc46dd03303dea04a91ee14f /app/helpers
parent09e818a6a63ebe5ae08045a2c67e20ae578f640e (diff)
downloadchouette-core-7ea0a6079017c561aa8286198bd77b258cb2d240.tar.bz2
Refs: #5413@0.3h; Fix bug in newapplciation helper unarchive link creation
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/newapplication_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/newapplication_helper.rb b/app/helpers/newapplication_helper.rb
index 3100450c9..c1a1c189e 100644
--- a/app/helpers/newapplication_helper.rb
+++ b/app/helpers/newapplication_helper.rb
@@ -151,7 +151,7 @@ module NewapplicationHelper
content_tag :li, link_to(t("actions.#{action}"), polymorph_url, method: :put)
end
elsif action == :unarchive
- if item.archived_or_finalised?
+ if item.archived? && !item.finalised?
content_tag :li, link_to(t("actions.#{action}"), polymorph_url, method: :put)
end
else