mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
ddd79494b0
- if a model is being deleted, `attributes` is an empty object and the data we actually need is in `_previousAttributes` - because of this, only fetching the type using `.get` returned the wrong value, and the Action model validator would throw an error because we tried to insert an empty type - we can access the previous value using `.previous(..)` - this commit fixes saving actions when deleting a post by fetching the type from the previous attributes if the current attributes is empty |
||
---|---|---|
.. | ||
content | ||
core | ||
test | ||
.c8rc.json | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.npmignore | ||
config.development.json | ||
ghost.js | ||
Gruntfile.js | ||
index.js | ||
jsconfig.json | ||
loggingrc.js | ||
MigratorConfig.js | ||
package.json |