Commit eced9a69 by gutkaBinit Committed by nixonrodrigues

ATLAS-3248 UI: Number of Search Page results not matching set Page limit.

parent 2f461b42
......@@ -273,6 +273,7 @@ define(['require',
}, this);
this.listenTo(this, "grid:refresh", function() {
if (this.grid) {
this.grid.collection.fullCollection.reset(this.collection.entities, { silent: true });
this.grid.trigger("backgrid:refresh");
}
});
......
......@@ -267,7 +267,7 @@ define(['require',
el: this.ui.colManager
},
gridOpts: {
emptyText: 'No Record found!',
emptyText: 'No Records found!',
className: 'table table-hover backgrid table-quickMenu colSort'
},
filterOpts: {},
......@@ -425,12 +425,13 @@ define(['require',
return;
}
if (isPostMethod) {
that.searchCollection.referredEntities = dataOrCollection.referredEntities;
Utils.findAndMergeRefEntity({
attributeObject: dataOrCollection.entities,
referredEntities: dataOrCollection.referredEntities
});
that.searchCollection.fullCollection.reset(dataOrCollection.entities, { silent: false });
that.searchCollection.referredEntities = dataOrCollection.referredEntities;
that.searchCollection.entities = dataOrCollection.entities;
that.searchCollection.reset(dataOrCollection.entities, { silent: true });
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment