aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcedricnjanga2018-03-20 21:05:57 -0700
committercedricnjanga2018-03-20 21:05:57 -0700
commit216ad28cfc022e20c57948c99a9ee276b102fcc7 (patch)
tree415ec184dc009b49ca938443b671c202331aadde
parent7889ea3f2e8051140b703a88ee9ea6194f5bf3f7 (diff)
downloadchouette-core-216ad28cfc022e20c57948c99a9ee276b102fcc7.tar.bz2
Refs #6258 associate calendars with current organisation
-rw-r--r--app/controllers/calendars_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/calendars_controller.rb b/app/controllers/calendars_controller.rb
index cc7570d65..2f25d95d6 100644
--- a/app/controllers/calendars_controller.rb
+++ b/app/controllers/calendars_controller.rb
@@ -104,6 +104,10 @@ class CalendarsController < ChouetteController
end
end
+ def begin_of_chain
+ current_organisation
+ end
+
def ransack_contains_date
date =[]
if params[:q] && !params[:q]['contains_date(1i)'].empty?