Ghost/core/server
Fabien O'Carroll 93b1035df5 🐛 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:39:46 +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:39:46 +00:00
data Refactored migration to use transactional utility 2021-02-08 12:25:52 +13:00
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:39:46 +00:00
public Enabled Portal (#12317) 2020-11-03 14:36:21 +05:30
services Passed MemberSubscribeEvent to members-api 2021-02-05 16:02:08 +00:00
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 Enabled Members for all sites (#12582) 2021-02-02 16:12:53 +00:00
analytics-events.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
ghost-server.js Changed exit codes to be > 0 2021-02-05 20:13:50 +00:00
index.js Changed exit codes to be > 0 2021-02-05 20:13:50 +00:00
overrides.js Moved sqlite3 override rules to db connection lib 2021-02-05 11:51:56 +00:00
update-check.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00