JedWatson/keystone — pull request #191 by mbayfield (2014-02-24 04:37:40+00:00)
Title: Relationship fields return blank when related item is missing - console ...

...err is: API Error (not found)

When an Item is removed, but the relationship in another list is not cleaned up for that item, the related item screen returns the console error: API Error (not found) and nothing is displayed in the relationship field.

This happens on fields that are many:true.

eg: if I have 2 models, listings and categories and categories have a relationship field for listings with many:true option.

If 10 listings are then linked to a category and I delete 1 listing, the remaining 9 should display, with the last one returned displaying its ID so it can be removed from the list and updated, currently none display.

This pull request just sends the id back so you can clean it up.