Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 4875:cdec6ed210d0
Fix batch.propchanged for transitive id properties (would result in a
backtrace when trying to group by property.id)
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Fri, 28 Mar 2014 10:54:53 +0100 |
| parents | f630eb0adcee |
| children | f6e76a03b502 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Fri Mar 14 15:08:32 2014 +0100 +++ b/roundup/cgi/templating.py Fri Mar 28 10:54:53 2014 +0100 @@ -2844,7 +2844,8 @@ if self.last_item is None: return 1 for property in properties: - if property == 'id' or isinstance (self.last_item[property], list): + if property == 'id' or property.endswith ('.id')\ + or isinstance (self.last_item[property], list): if (str(self.last_item[property]) != str(self.current_item[property])): return 1
