Before: Pager default included "row count" and "adjustible page size".
After: Defaults to simple pager without the extras.
The extra stuff isn't always useful and can break the layout on small screens or dashlets,
so I think a better default is to exclude rather than include them.
this.$onInit = function () {
if (!ctrl.display.settings) {
- ctrl.display.settings = _.extend({}, _.cloneDeep(CRM.crmSearchAdmin.defaultDisplay.settings), {columns: null});
+ ctrl.display.settings = _.extend({}, _.cloneDeep(CRM.crmSearchAdmin.defaultDisplay.settings), {columns: null, pager: {}});
if (searchMeta.getEntity(ctrl.apiEntity).order_by) {
ctrl.display.settings.sort.push([searchMeta.getEntity(ctrl.apiEntity).order_by, 'ASC']);
}