0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core
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
..
client@faf8e85d8e Updated Ghost-Admin to v3.41.3 2021-02-01 14:40:51 +00:00
frontend 🔒 Fixed open redirect in private site login 2021-01-26 16:42:42 +00:00
server 🐛 Fixed Member model removing labels when unset 2021-02-08 09:44:47 +00:00
shared Added emailAnalytics config feature flag (#12443) 2020-12-02 13:22:12 +00:00
index.js Refactored server announce functions to be clearer 2020-08-09 17:25:15 +01:00