diff options
| author | jpl | 2017-02-15 16:06:54 +0100 |
|---|---|---|
| committer | jpl | 2017-02-15 16:06:54 +0100 |
| commit | 0baf5f7f29f4ba4451bc3a2d7a5f2e291220fe29 (patch) | |
| tree | f4cbcf744e9bdaac8a80bc697858f5b9d187407d /app/controllers | |
| parent | 147497cca3f52193061b4e95bd57d57fb054a675 (diff) | |
| download | chouette-core-0baf5f7f29f4ba4451bc3a2d7a5f2e291220fe29.tar.bz2 | |
Refs #2482: upadting workbenches#show
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/workbenches_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/workbenches_controller.rb b/app/controllers/workbenches_controller.rb index ea55820d0..c261373e0 100644 --- a/app/controllers/workbenches_controller.rb +++ b/app/controllers/workbenches_controller.rb @@ -4,7 +4,7 @@ class WorkbenchesController < BreadcrumbController def show scope = Workbench.find(params[:id]) - if params[:q] and params[:q][:organisation_name_eq_any].include? current_organisation.name + if params[:q] and params[:q][:organisation_name_eq_any] and params[:q][:organisation_name_eq_any].include? current_organisation.name scope = scope.referentials.ready else scope = scope.all_referentials |
