From 2272a75da51315c5ec702a293438796c0f88ccbb Mon Sep 17 00:00:00 2001 From: Alban Peignier Date: Wed, 25 Apr 2018 09:44:01 +0200 Subject: Specify workgroup to Chouette::StopArea.custom_fields. Refs #6669 --- app/controllers/stop_areas_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') diff --git a/app/controllers/stop_areas_controller.rb b/app/controllers/stop_areas_controller.rb index 76732afd7..734152c64 100644 --- a/app/controllers/stop_areas_controller.rb +++ b/app/controllers/stop_areas_controller.rb @@ -203,7 +203,7 @@ class StopAreasController < ChouetteController :kind, :status, localized_names: Chouette::StopArea::AVAILABLE_LOCALIZATIONS - ] + permitted_custom_fields_params(Chouette::StopArea.custom_fields) # XXX filter on the workgroup + ] + permitted_custom_fields_params(Chouette::StopArea.custom_fields(stop_area_referential.workgroup)) params.require(:stop_area).permit(fields) end -- cgit v1.2.3