mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-03 03:55:26 +03:00
93b1035df5
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. |
||
---|---|---|
.. | ||
adapters | ||
api | ||
data | ||
lib | ||
models | ||
public | ||
services | ||
translations | ||
views | ||
web | ||
analytics-events.js | ||
ghost-server.js | ||
index.js | ||
overrides.js | ||
update-check.js |