Ghost/core/test/unit/models
kirrg001 d209a4d013 🐛 Fixed importer bug: can't resolve authors relation
closes #9547

- you setup a blog with the following owner:
  - email: test@ghost.org
  - name: test
  - slug: test
- now you import a JSON db file, which holds the exact same owner
  - this owner won't be imported, because it's a duplicate
  - but the slug is different (!)
- the importer tries to find a matching existing user, but won't find anything
- the importer then send an empty authors array `post.authors=[]` into the model layer
- this is not allowed -> this would mean, you are actively trying to unset all authors
2018-04-10 01:10:06 +02:00
..
base Sanitize incoming model relation data 2018-04-05 18:51:58 +02:00
plugins Deleted bookshelf access plugin 2018-01-25 17:54:28 +01:00
post_spec.js 🐛 Fixed importer bug: can't resolve authors relation 2018-04-10 01:10:06 +02: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 Extended the API object validation 2018-04-05 18:51:58 +02:00