From 775b219d7c0ebfb84cc70b0576105bf1a0d6e7fb Mon Sep 17 00:00:00 2001 From: tbradsha <32492176+tbradsha@users.noreply.github.com> Date: Wed, 29 Apr 2026 14:59:38 -0600 Subject: [PATCH 1/2] Match the new placeholder format --- projects/plugins/crm/js/ZeroBSCRM.admin.listview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) ); } From 30201184aa3f706b725c60852854a1270e591812 Mon Sep 17 00:00:00 2001 From: tbradsha <32492176+tbradsha@users.noreply.github.com> Date: Wed, 29 Apr 2026 15:01:39 -0600 Subject: [PATCH 2/2] Add changelog --- .../plugins/crm/changelog/fix-crm-listview-counts-sprintf | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 projects/plugins/crm/changelog/fix-crm-listview-counts-sprintf 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.