0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/test/unit/models
Aileen Nowak 1da2eec915 🐛Fixed image properties to be reset to null after removal (#9432)
closes #9085

Fixes an issue, where the client sets image properties to `""` after deleting the image. This causes problems with the query filter (see https://github.com/TryGhost/GQL/issues/24), as they have to be `null`.

Added a check in the model layer saving method to set value  to `null`, when the property is empty.

Affected models and properties:
- `posts`:
	- `feature_image`
	- `og_image`
	- `twitter_image`
- `users`:
	- `profile_image`
	- `cover_image`
- `tags`:
	- `feature_image`
2018-03-05 09:10:27 +01:00
..
base 🐛Fixed image properties to be reset to null after removal (#9432) 2018-03-05 09:10:27 +01:00
plugins Deleted bookshelf access plugin 2018-01-25 17:54:28 +01:00
post_spec.js 🐛Fixed image properties to be reset to null after removal (#9432) 2018-03-05 09:10:27 +01:00
tag_spec.js 🐛Fixed image properties to be reset to null after removal (#9432) 2018-03-05 09:10:27 +01:00
user_spec.js 🐛Fixed image properties to be reset to null after removal (#9432) 2018-03-05 09:10:27 +01:00