# HG changeset patch # User Søren Løvborg # Date 2015-08-31 17:42:56 # Node ID 4b9370a01c4d114669aca6975a06604066aad670 # Parent 047ac9eefb71a05fde00c9ed3bf9c7182700ae78 compare: fix 404 ("undefined" ref type) error The changeset selector would create selector entries without the 'type' attribute when running in "cached" mode, causing 404 errors. diff --git a/kallithea/templates/compare/compare_diff.html b/kallithea/templates/compare/compare_diff.html --- a/kallithea/templates/compare/compare_diff.html +++ b/kallithea/templates/compare/compare_diff.html @@ -115,7 +115,7 @@ ${self.repo_context_bar('changelog')} var children = []; $.each(this.children, function(){ if(query.term.length == 0 || this.text.toUpperCase().indexOf(query.term.toUpperCase()) >= 0 ){ - children.push({'id': this.id, 'text': this.text}); + children.push(this); } }); data.results.push({'text': section, 'children': children});