diff --git a/projects/plugins/crm/changelog/fix-crm-listview-counts-sprintf b/projects/plugins/crm/changelog/fix-crm-listview-counts-sprintf new file mode 100644 index 000000000000..a89ab55eaa19 --- /dev/null +++ b/projects/plugins/crm/changelog/fix-crm-listview-counts-sprintf @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Listview: Fix "Showing X of Y items" text. diff --git a/projects/plugins/crm/js/ZeroBSCRM.admin.listview.js b/projects/plugins/crm/js/ZeroBSCRM.admin.listview.js index d7fa69b9ef9c..8e98938fdfe8 100644 --- a/projects/plugins/crm/js/ZeroBSCRM.admin.listview.js +++ b/projects/plugins/crm/js/ZeroBSCRM.admin.listview.js @@ -543,8 +543,8 @@ function jpcrm_update_listview_counts() { } let html = zeroBSCRMJS_listViewLang( 'listview_counts' ); - html = html.replace( '%s', current_range ); - html = html.replace( '%s', zbsListViewCount ); + html = html.replace( '%1$s', current_range ); + html = html.replace( '%2$s', zbsListViewCount ); listview_count_els.forEach( element => ( element.textContent = html ) ); }