aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/calendars_controller.rb
diff options
context:
space:
mode:
authorRobert2017-06-23 11:43:56 +0200
committerRobert2017-06-23 11:51:48 +0200
commit970954938043d8d73c4457ee2d91e22c0e422e65 (patch)
tree8c633f0437b0bd76c21d40d3bc7225230d8ce61f /app/controllers/calendars_controller.rb
parentd51985fc2a7c2138fd12cb9116ebf05d8b0e7dac (diff)
downloadchouette-core-970954938043d8d73c4457ee2d91e22c0e422e65.tar.bz2
JS for date validation
Diffstat (limited to 'app/controllers/calendars_controller.rb')
-rw-r--r--app/controllers/calendars_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/calendars_controller.rb b/app/controllers/calendars_controller.rb
index a2bfe9b63..415ebcaeb 100644
--- a/app/controllers/calendars_controller.rb
+++ b/app/controllers/calendars_controller.rb
@@ -50,7 +50,7 @@ class CalendarsController < BreadcrumbController
date << params[:q][key].to_i
params[:q].delete(key)
end
- params[:q]['contains_date'] = Date.new(*date)
+ params[:q]['contains_date'] = Date.new(*date) rescue nil
end
end