Ghost/core/server/models
Hannah Wolfe b2051dacf7 Fix post model deletes tags when editing post only
fixes #6919, refs #6917

- resolves the problem by guarding for `tags` being undefined or null
   - If it is undefined, we don't do any tag processing
   - If it is null, we don't do any tag processing
   - To delete all tags, you would provide `tags: []`
- adds tests at both the model (using withRelated) and API (using includes) layers
- moves the tests for the post updateTags functionality from the tag model spec to the post model spec & cleans up a bit
2016-06-02 22:52:34 +01:00
..
base Revert "Force UTC at process level" 2016-06-02 14:38:02 +01:00
plugins add small permission improvements 2016-05-08 14:22:55 +02:00
accesstoken.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app-field.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app-setting.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
client-trusted-domain.js Add table columns for OAuth 2015-09-02 13:39:22 +01:00
client.js Move client secret logic into the model 2016-02-18 20:33:37 +00:00
index.js Subscribers: Model, API & CSV import/export 2016-05-11 10:28:10 +02:00
permission.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
post.js Fix post model deletes tags when editing post only 2016-06-02 22:52:34 +01:00
refreshtoken.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
role.js Improve code for handling fixture migrations 2016-04-10 19:02:22 +01:00
settings.js Revert "Force UTC at process level" 2016-06-02 14:38:02 +01:00
subscriber.js subscribers: fix adding subscriber from admin if collection is empty 2016-05-11 19:23:44 +02:00
tag.js Refactor content deletion 2016-03-22 10:10:09 -05:00
user.js Revert "Force UTC at process level" 2016-06-02 14:38:02 +01:00