diff options
| author | Robert | 2018-01-08 10:09:37 +0100 | 
|---|---|---|
| committer | Robert | 2018-01-08 10:09:37 +0100 | 
| commit | 0a69d409cded29a45ee3857f0a49c9a7a51d858a (patch) | |
| tree | 84f8eaef50642b5f89ccce2fa401b3c5da4cafa3 /app/helpers | |
| parent | fb9eb367b9c56c19df7f2e2301f4a417f5409d6d (diff) | |
| download | chouette-core-0a69d409cded29a45ee3857f0a49c9a7a51d858a.tar.bz2 | |
Fixes: #5413@1h; Specs implemented
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/newapplication_helper.rb | 4 | 
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 | 
