diff options
| author | Alban Peignier | 2018-04-25 09:44:01 +0200 | 
|---|---|---|
| committer | Alban Peignier | 2018-04-25 09:44:01 +0200 | 
| commit | a2c0f14c6a70f8c967ba3e07182f1898b2866edd (patch) | |
| tree | db7b1c8eb521e59f0f4b9f1a630ffb60c139d53b /app/controllers/stop_areas_controller.rb | |
| parent | 396ef537de782544eeec6b18f5a566fe5048490b (diff) | |
| download | chouette-core-a2c0f14c6a70f8c967ba3e07182f1898b2866edd.tar.bz2 | |
Specify workgroup to Chouette::StopArea.custom_fields. Refs #6669
Diffstat (limited to 'app/controllers/stop_areas_controller.rb')
| -rw-r--r-- | app/controllers/stop_areas_controller.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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 | 
