Просмотр исходного кода

Hotfix crash on postgres

AARDBEI-12
Maarten van den Berg лет назад: 6
Родитель
Сommit
9720df07ef
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/controllers/people_controller.rb

+ 1 - 1
app/controllers/people_controller.rb

@@ -93,7 +93,7 @@ class PeopleController < ApplicationController
93 93
   def calendar
94 94
     cal = Icalendar::Calendar.new
95 95
 
96
-    @person.participants.joins(:activity).where('end > ?', 3.months.ago).each do |p|
96
+    @person.participants.joins(:activity).where('"end" > ?', 3.months.ago).each do |p|
97 97
       next if !p.attending && params[:skipcancel]
98 98
 
99 99
       a = p.activity