marmelab / ng-admin

Add an AngularJS admin GUI to any RESTful API
http://ng-admin-book.marmelab.com/
MIT License
3.95k stars 725 forks source link

Can't update a referenced field after the reference was deleted #1389

Open 7hibault opened 6 years ago

7hibault commented 6 years ago

Prerequisites

Description

When an entity contains a reference to another entity, deleting the referenced entity makes it no longer possible to edit the referenced field.

Steps to Reproduce

  1. Run the ng-admin-demo
  2. Go to Catalog > Posters
  3. Pick any poster, click edit and check that you can update the Category field
  4. Go to Catalog > Categories
  5. Pick any category and delete it
  6. Go to Catalog > Posters
  7. Pick a poster that previously had the category you just deleted and click edit
  8. Try to update the Category field

ng-admin-bug

Expected behavior: The field should be editable

Actual behavior: The field can no longer be updated