[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
This commit is contained in:
bsag 2005-04-09 09:12:25 +00:00
parent dace1ce903
commit e0606f8483

View file

@ -1,6 +1,6 @@
<div id="display_box">
<% 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? %>
<div class="contexts">
<h2>