aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorjpl2017-02-15 16:06:54 +0100
committerjpl2017-02-15 16:06:54 +0100
commit0baf5f7f29f4ba4451bc3a2d7a5f2e291220fe29 (patch)
treef4cbcf744e9bdaac8a80bc697858f5b9d187407d /app/controllers
parent147497cca3f52193061b4e95bd57d57fb054a675 (diff)
downloadchouette-core-0baf5f7f29f4ba4451bc3a2d7a5f2e291220fe29.tar.bz2
Refs #2482: upadting workbenches#show
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/workbenches_controller.rb2
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