Ghost/core/test/unit/models/base
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
..
index_spec.js 🐛Fixed image properties to be reset to null after removal (#9432) 2018-03-05 09:10:27 +01:00
listeners_spec.js Import lib/common only 2017-12-12 10:28:13 +01:00