From 2ad3520f94bcfca20bb95dfdac98ad6735ca1287 Mon Sep 17 00:00:00 2001 From: cedricnjanga Date: Wed, 25 Oct 2017 17:15:34 +0200 Subject: Refs #4759 Fix bug on dashboard to show the 5 first referentials of the current_organisation's first workbench. Added a small changes dashboard.rb to avoid '@workbench is not defined error' With the same logic we list only the first 5 calendars --- lib/stif/dashboard.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/stif/dashboard.rb') diff --git a/lib/stif/dashboard.rb b/lib/stif/dashboard.rb index fafddec62..b6b6b8284 100644 --- a/lib/stif/dashboard.rb +++ b/lib/stif/dashboard.rb @@ -5,7 +5,7 @@ module Stif end def referentials - @referentials ||= @workbench.all_referentials + @referentials ||= self.workbench.all_referentials end def calendars -- cgit v1.2.3