diff options
| author | Luc Donnet | 2017-07-25 22:15:35 +0200 |
|---|---|---|
| committer | Luc Donnet | 2017-07-25 22:15:35 +0200 |
| commit | cbfe9501f2d2cfc38cbe6ac12180e372dd78eca7 (patch) | |
| tree | dbe70647c87af0d779dbba06e20d0f0c2b4a294a /app/controllers/workbenches_controller.rb | |
| parent | ea3ad8d1f9db76e3d2dfc5f96c930af8db074690 (diff) | |
| parent | cada0f02d732dce25492d7f7eb6d6232d56188dd (diff) | |
| download | chouette-core-cbfe9501f2d2cfc38cbe6ac12180e372dd78eca7.tar.bz2 | |
Merge branch 'master' into staging
Diffstat (limited to 'app/controllers/workbenches_controller.rb')
| -rw-r--r-- | app/controllers/workbenches_controller.rb | 9 |
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 |
