0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00
ghost/core/server
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
..
adapters Improved JSDoc in default scheduler 2020-12-16 17:25:05 +13:00
api 🐛 Fixed Member model removing labels when unset 2021-02-08 09:44:47 +00:00
data Removed stripe keys and analytics data from export (#12573) 2021-01-28 14:55:54 +05:30
lib Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
models 🐛 Fixed Member model removing labels when unset 2021-02-08 09:44:47 +00:00
public Enabled Portal (#12317) 2020-11-03 14:36:21 +05:30
services Fixed Members importer usage of linkStripeCustomer 2021-01-26 21:26:19 +05:30
translations Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
views Updated head to only output custom favicons (#11949) 2020-06-30 15:07:08 +01:00
web Pointed the v3 endpoint to the v3 folder 2021-01-22 16:32:03 +13:00
analytics-events.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
ghost-server.js Improved job queue logging 2020-11-25 13:28:13 +13:00
index.js Prevented scheduling of recurring analytics jobs when not using emails (#12441) 2020-12-02 08:17:44 +00:00
overrides.js Improved threading performance on non-SQLite clients 2020-11-30 13:27:40 +13:00
update-check.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00