EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
collection maxSize option
Yuri Kuznetsovb8dc4e2dcd78
diff --git a/client/src/collection.js b/client/src/collection.jsindex 373c76b0ab..956117f982 100644--- a/client/src/collection.js+++ b/client/src/collection.js@@ -164,6 +164,7 @@ class Collection {* orderBy?: string|null,* urlRoot?: string,* url?: string,+ * maxSize?: number,* }} [options] Options.*/constructor(models, options) {@@ -173,6 +174,10 @@ class Collection {this.model = options.model;}+ if (options.maxSize !== undefined) {+ this.maxSize = options.maxSize;+ }+this._reset();if (options.entityType) {