aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXinhui2017-03-23 12:30:16 +0100
committerXinhui2017-03-24 14:40:37 +0100
commit1b1fdd896eb2d550464cea51c50a8e82e4bc47cd (patch)
tree7cc5d6b67748088dab50547993b6936d8971e3a9
parent1bbbb2e90f7072aac96011f3d586fb3c4cf20122 (diff)
downloadchouette-core-1b1fdd896eb2d550464cea51c50a8e82e4bc47cd.tar.bz2
Workbench#show remove current_organisation filter
Refs #2918
-rw-r--r--app/controllers/workbenches_controller.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/app/controllers/workbenches_controller.rb b/app/controllers/workbenches_controller.rb
index 7f108b266..58fd507d4 100644
--- a/app/controllers/workbenches_controller.rb
+++ b/app/controllers/workbenches_controller.rb
@@ -7,9 +7,7 @@ class WorkbenchesController < BreadcrumbController
def show
scope = params[:q] ? resource.all_referentials : resource.referentials.ready
scope = ransack_associated_lines(scope)
-
@q = ransack_periode(scope).ransack(params[:q])
- @q.organisation_name_eq_any ||= current_organisation.name unless params[:q]
@wbench_refs = sort_result(@q.result).paginate(page: params[:page], per_page: 30)
show! do
build_breadcrumb :show