Skip to content

Commit

Permalink
[bugfix,lib/model][xs]: fix micro bug whereby result count for search…
Browse files Browse the repository at this point in the history
…es not set if 0 results (due to incorrect if statement).
  • Loading branch information
rgrp committed Aug 16, 2011
1 parent 9c7bc45 commit 3761b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ CKAN.Model = function ($, _, Backbone, undefined) {
// then be accessed via the `total` property.
Model.SearchCollection = Backbone.Collection.extend({
constructor: function SearchCollection(models, options) {
if (options && options.total) {
if (options) {
this.total = options.total;
}
Backbone.Collection.prototype.constructor.apply(this, arguments);
Expand Down

0 comments on commit 3761b8c

Please sign in to comment.