Ghost/core/test/utils/fixtures
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
..
app Cleanup indentation now JSCS can see it 2016-06-11 20:25:15 +01:00
config 🎨 config optimisations (#7921) 2017-02-02 12:46:30 +00:00
csv 🎨 Use GhostAuth name and example emails (#7475) 2016-10-03 15:11:43 +01:00
data feature: define redirects in a custom file (#7719) (#7945) 2017-02-06 15:32:40 +01:00
export Imported nested tags by foreign key 2018-02-20 09:56:45 +01:00
filter-param Support filtering based on primary_tag (#9124) 2017-10-10 14:07:44 +02:00
images 🎨 Blog icon improvements (#8260) 2017-04-11 13:40:17 +02:00
import 🙀 Image field naming & new img_url helper (#8364) 2017-04-24 18:21:47 +01:00
themes Theme translations and blog localisation (#8437) 2018-01-09 14:50:57 +01:00
data-generator.js 🐛Fixed image properties to be reset to null after removal (#9432) 2018-03-05 09:10:27 +01:00
example.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
test.hbs Move API tests to /integration/ 2013-11-07 14:26:47 +01:00