0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

🐛 Show specific tier posts under 'Paid-member only' filter in admin panel (#17043)

fixes https://github.com/TryGhost/Ghost/issues/16988
This commit is contained in:
Princi Vershwal 2023-10-03 14:43:11 +05:30 committed by GitHub
parent 8d1320a225
commit 3442fdfee6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ const VISIBILITIES = [{
value: 'members' value: 'members'
}, { }, {
name: 'Paid members-only', name: 'Paid members-only',
value: 'paid' value: '[paid,tiers]'
}]; }];
const ORDERS = [{ const ORDERS = [{

View file

@ -101,7 +101,7 @@ describe('Acceptance: Content', function () {
await selectChoose('[data-test-visibility-select]', 'Paid members-only'); await selectChoose('[data-test-visibility-select]', 'Paid members-only');
[lastRequest] = this.server.pretender.handledRequests.slice(-1); [lastRequest] = this.server.pretender.handledRequests.slice(-1);
expect(lastRequest.queryParams.filter, '"visibility" request filter param') expect(lastRequest.queryParams.filter, '"visibility" request filter param')
.to.have.string('visibility:paid+status:[draft,scheduled,published]'); .to.have.string('visibility:[paid,tiers]+status:[draft,scheduled,published]');
// Displays editor post // Displays editor post
// TODO: implement "filter" param support and fix mirage post->author association // TODO: implement "filter" param support and fix mirage post->author association