0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/api/canary
Fabien O'Carroll 33910db1ec
🐛 Fixed Member model removing labels when unset
closes https://github.com/TryGhost/Ghost/issues/12600

The bookshelf-relations plugin which we use will **remove** all
relations when they are set to an empty array, but will leave them alone
if it's set to undefined.

Our logic to deduplicate uppercase & lowercase version of the same label
was in advertently always setting the labels to an array, but when the
model was saved without passing the labels, this array would be empty.

Here we've added a check which will skip all label handling, if there
are no labels set.
2021-02-08 09:44:47 +00:00
..
utils Added FirstPromoter Integration (#12540) 2021-01-15 19:05:15 +05:30
actions.js
authentication.js
authors-public.js
config.js Added emailAnalytics config feature flag (#12443) 2020-12-02 13:22:12 +00:00
db.js
email-preview.js Refactor mega service to use stored email content and batch/recipient records 2020-09-29 17:17:54 +01:00
email.js
identities.js
images.js Removed global.Promise override (#12182) 2020-11-04 10:55:47 +00:00
index.js Added basic CRUD admin API for snippets 2020-10-16 18:02:58 +01:00
integrations.js
invites.js Refactored invites module into a class 2021-01-14 19:42:38 +13:00
labels.js
mail.js
members.js 🐛 Fixed Member model removing labels when unset 2021-02-08 09:44:47 +00:00
memberSigninUrls.js Updated getMagicLink call to handle Promise return 2020-09-18 10:49:18 +01:00
membersStripeConnect.js
notifications.js Fixed update check tests 2021-01-14 18:30:09 +13:00
oembed.js Moved the OEmbed service to use our DI pattern 2021-01-15 15:35:30 +01:00
pages-public.js
pages.js
posts-public.js
posts.js 🐛 Fixed backwards compatibility for newsletters (#12422) 2020-11-25 13:58:21 +00:00
preview.js
redirects.js Added .yaml format support in redirects configuration (#12187) 2020-11-04 12:08:32 +13:00
roles.js
schedules.js 🐛 Fixed scheduled post emails pointing at /404/ for the "view online" link 2020-10-08 10:26:49 +01:00
session.js
settings-public.js
settings.js 🐛 Fixed email verification mails not sent 2020-09-24 23:39:25 +05:30
site.js Enabled Portal (#12317) 2020-11-03 14:36:21 +05:30
slack.js
slugs.js
snippets.js Added basic CRUD admin API for snippets 2020-10-16 18:02:58 +01:00
tags-public.js
tags.js
themes.js
users.js Moved the users service to use our DI pattern 2021-01-15 17:58:36 +01:00
webhooks.js Added check for parent integration_id when creating a webhook 2020-09-24 15:09:51 +12:00