aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/workbenches_controller.rb
diff options
context:
space:
mode:
authorLuc Donnet2017-07-25 22:15:35 +0200
committerLuc Donnet2017-07-25 22:15:35 +0200
commitcbfe9501f2d2cfc38cbe6ac12180e372dd78eca7 (patch)
treedbe70647c87af0d779dbba06e20d0f0c2b4a294a /app/controllers/workbenches_controller.rb
parentea3ad8d1f9db76e3d2dfc5f96c930af8db074690 (diff)
parentcada0f02d732dce25492d7f7eb6d6232d56188dd (diff)
downloadchouette-core-cbfe9501f2d2cfc38cbe6ac12180e372dd78eca7.tar.bz2
Merge branch 'master' into staging
Diffstat (limited to 'app/controllers/workbenches_controller.rb')
-rw-r--r--app/controllers/workbenches_controller.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/controllers/workbenches_controller.rb b/app/controllers/workbenches_controller.rb
index 22a71863a..19af28a98 100644
--- a/app/controllers/workbenches_controller.rb
+++ b/app/controllers/workbenches_controller.rb
@@ -2,7 +2,14 @@ class WorkbenchesController < BreadcrumbController
before_action :query_params, only: [:show]
defaults resource_class: Workbench
- respond_to :html, only: [:show]
+ respond_to :html, only: [:show, :index]
+
+ def index
+ # Only display Wb with selected name, according to #4108
+ @workbench = current_organisation.workbenches.find_by(name: "Gestion de l'offre")
+ @referentials = @workbench.all_referentials
+ @calendars = Calendar.where('organisation_id = ? OR shared = ?', current_organisation.id, true)
+ end
def show
scope = resource.all_referentials