From 6aecfbfccedf8bac4ac97aefb626550b47b0ccd5 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Tue, 26 Nov 2019 15:08:21 +0000 Subject: [PATCH] Fixed members count in confirm email modal no issue - the members count used to disable the email toggle and shown in the confirm modal was incorrect as it didn't take into account subscribed vs non-subscribed members - adjusts the filter in the count query to only fetch subscribed members --- ghost/admin/app/controllers/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/controllers/editor.js b/ghost/admin/app/controllers/editor.js index d768804a09..188b6f58d2 100644 --- a/ghost/admin/app/controllers/editor.js +++ b/ghost/admin/app/controllers/editor.js @@ -547,7 +547,7 @@ export default Controller.extend({ // load supplementel data such as the members count in the background backgroundLoader: task(function* () { if (this.feature.members) { - let membersResponse = yield this.store.query('member', {limit: 1}); + let membersResponse = yield this.store.query('member', {limit: 1, filter: 'subscribed:true'}); this.set('memberCount', get(membersResponse, 'meta.pagination.total')); } }).restartable(),