From e2a945efaf68e2b55d9cd9b38fc3c2f56995c46d Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Tue, 14 May 2019 17:32:57 +0530 Subject: [PATCH] fix: if more than 20 records are available the system removing last row --- frappe/public/js/frappe/form/multi_select_dialog.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frappe/public/js/frappe/form/multi_select_dialog.js b/frappe/public/js/frappe/form/multi_select_dialog.js index 609cd8be80..1c04ab0dd1 100644 --- a/frappe/public/js/frappe/form/multi_select_dialog.js +++ b/frappe/public/js/frappe/form/multi_select_dialog.js @@ -208,7 +208,7 @@ frappe.ui.form.MultiSelectDialog = Class.extend({ txt: me.dialog.fields_dict["search_term"].get_value(), filters: filters, filter_fields: Object.keys(me.setters).concat([me.date_field]), - page_length: this.page_length + 1, + page_length: this.page_length, query: this.get_query ? this.get_query().query : '', as_dict: 1 } @@ -220,10 +220,6 @@ frappe.ui.form.MultiSelectDialog = Class.extend({ callback: function(r) { let results = [], more = 0; if(r.values.length) { - if(r.values.length > me.page_length){ - r.values.pop(); - more = 1; - } r.values.forEach(function(result) { if(me.date_field in result) { result["Date"] = result[me.date_field]