diff options
| author | Robert | 2018-01-09 10:09:28 +0100 |
|---|---|---|
| committer | Robert | 2018-01-09 10:09:28 +0100 |
| commit | 7ea0a6079017c561aa8286198bd77b258cb2d240 (patch) | |
| tree | 325c3b799bc6399ffc46dd03303dea04a91ee14f /app/helpers | |
| parent | 09e818a6a63ebe5ae08045a2c67e20ae578f640e (diff) | |
| download | chouette-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.rb | 2 |
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 |
