mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
33910db1ec
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. |
||
---|---|---|
.. | ||
client@faf8e85d8e | ||
frontend | ||
server | ||
shared | ||
index.js |