Skip to content

Commit 03b3c78

Browse files
author
Richard Jones
committed
sort/group by missing values correctly [SF#1198623]
1 parent dd4d06f commit 03b3c78

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Fixed:
2626
popups (sf bug 1211800)
2727
- handle dropped properies in rdbms/metakit journal export (sf bug 1203569)
2828
- handle missing Subject lines better (sf bug 1198729)
29+
- sort/group by missing values correctly (sf bug 1198623)
2930

3031

3132
2005-05-02 0.8.3

doc/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ Maciej Starzyk,
146146
Mitchell Surface,
147147
Mike Thompson,
148148
Michael Twomey,
149+
Karl Ulbrich,
149150
Martin Uzak,
150151
Darryl VanDorp,
151152
J Vickroy,

roundup/cgi/templating.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2341,8 +2341,11 @@ def propchanged(self, property):
23412341
''' Detect if the property marked as being the group property
23422342
changed in the last iteration fetch
23432343
'''
2344+
# we poke directly at the _value here since MissingValue can screw
2345+
# us up and cause Nones to compare strangely
23442346
if (self.last_item is None or
2345-
self.last_item[property] != self.current_item[property]):
2347+
self.last_item[property]._value !=
2348+
self.current_item[property]._value):
23462349
return 1
23472350
return 0
23482351

0 commit comments

Comments
 (0)