diff options
| author | Alban Peignier | 2018-01-10 21:00:11 +0100 |
|---|---|---|
| committer | Alban Peignier | 2018-01-10 21:00:11 +0100 |
| commit | 59d7933b2b2dc06e207501587943963ea4ed335d (patch) | |
| tree | 7cf3645ef6635ffe973be5a43a8de4360631c4f8 | |
| parent | 0e91d206fd8278d0c43c34777f4a585481882b70 (diff) | |
| download | chouette-core-59d7933b2b2dc06e207501587943963ea4ed335d.tar.bz2 | |
Fixes typo in referential_read_only?. Removed finalised? test (no such method). Refs #5413
| -rw-r--r-- | app/helpers/newapplication_helper.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/helpers/newapplication_helper.rb b/app/helpers/newapplication_helper.rb index 4ca69560b..6600a03f7 100644 --- a/app/helpers/newapplication_helper.rb +++ b/app/helpers/newapplication_helper.rb @@ -1,3 +1,4 @@ +# coding: utf-8 module NewapplicationHelper # Table Builder @@ -147,11 +148,11 @@ module NewapplicationHelper content_tag :li, link_to(t("actions.#{action}"), polymorph_url) end elsif action == :archive - unless item.referntial_read_only? + unless item.referential_read_only? content_tag :li, link_to(t("actions.#{action}"), polymorph_url, method: :put) end elsif action == :unarchive - if item.archived? && !item.finalised? + if item.archived? content_tag :li, link_to(t("actions.#{action}"), polymorph_url, method: :put) end else |
