aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/stop_areas_helper.rb
diff options
context:
space:
mode:
authorZog2018-03-26 09:48:20 +0200
committerJohan Van Ryseghem2018-04-03 12:03:12 +0200
commit361ad6302d717acff9431d51126d8bf3a6143503 (patch)
tree6af3a1635679649bbc4d52ace1e2d8672ac98701 /app/helpers/stop_areas_helper.rb
parent19247e786de80e50928678b49a8bc2c183c30ece (diff)
downloadchouette-core-361ad6302d717acff9431d51126d8bf3a6143503.tar.bz2
Refs #5972; Don't assign a Registration Number in the form
This can cause a bug when several forms are opened concurently
Diffstat (limited to 'app/helpers/stop_areas_helper.rb')
-rw-r--r--app/helpers/stop_areas_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/stop_areas_helper.rb b/app/helpers/stop_areas_helper.rb
index 1c9d974a1..032f68494 100644
--- a/app/helpers/stop_areas_helper.rb
+++ b/app/helpers/stop_areas_helper.rb
@@ -68,7 +68,11 @@ module StopAreasHelper
end
def stop_area_registration_number_value stop_area
- stop_area&.registration_number || stop_area&.stop_area_referential&.generate_registration_number
+ stop_area&.registration_number
+ end
+
+ def stop_area_registration_number_hint
+ t "formtastic.hints.stop_area.registration_number"
end
def stop_area_status(stop_area)