Fixed bug causing duplicate display of replies. (No clue how this slipped in.)

This commit is contained in:
Tobi Schäfer 2010-04-05 14:14:57 +00:00
parent 4ecc50937f
commit eab69cd022
2 changed files with 2 additions and 2 deletions

View file

@ -476,7 +476,7 @@ Story.prototype.comments_macro = function(param, mode) {
html.link({href: this.href() + "#comments"}, text);
}
} else {
this.comments.prefetchChildren();
this.prefetchChildren();
this.forEach(function() {
html.openTag("a", {name: this._id});
html.closeTag("a");

View file

@ -59,7 +59,7 @@ modifier.foreign = id
_children = collection(Comment)
_children.local = id
_children.foreign = story_id
_children.foreign = parent_id
_children.order = created asc
_children.filter = parent_type = 'Story'
_children.cachemode = aggressive