From e0606f84834d2b0cbbb15eeaeedc12162aa68691 Mon Sep 17 00:00:00 2001 From: bsag Date: Sat, 9 Apr 2005 09:12:25 +0000 Subject: [PATCH] [Patch by lolindrath - #30] ISNULL(due) wasn't compatible with postgreSQL, so changed to due IS NULL which works with all 3 db formats. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@63 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/views/todo/list.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracks/app/views/todo/list.rhtml b/tracks/app/views/todo/list.rhtml index 5a0ac49f..3a6a485e 100644 --- a/tracks/app/views/todo/list.rhtml +++ b/tracks/app/views/todo/list.rhtml @@ -1,6 +1,6 @@
<% for @shown_place in @shown_places %> - <% @not_done = Todo.find_all("done=0 AND context_id=#{@shown_place.id}", "ISNULL(due), due ASC, created ASC") %> + <% @not_done = Todo.find_all("done=0 AND context_id=#{@shown_place.id}", "due IS NULL, due ASC, created ASC") %> <% if !@not_done.empty? %>