Can't update a referenced field after the reference was deleted
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 3.9k
- Forks
- 703
- PR merge metrics
- No merged PRs in 30d
Description
Prerequisites
- Are you running the latest version of
ng-admin? Yes, running the ng-admin-demo. - Did you check the documentation? Yes.
- Did you perform a cursory search to see if your bug or enhancement is already reported? Yes.
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
- Run the ng-admin-demo
- Go to
Catalog>Posters - Pick any poster, click edit and check that you can update the
Categoryfield - Go to
Catalog>Categories - Pick any category and delete it
- Go to
Catalog>Posters - Pick a poster that previously had the category you just deleted and click edit
- Try to update the
Categoryfield

Expected behavior: The field should be editable
Actual behavior: The field can no longer be updated
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running ng-admin-demo and reproducing the issue through Catalog > Posters and Catalog > Categories. Trace the Category field behavior after its referenced category is deleted, then verify that the field can still be edited and updated for the affected poster.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angularjs, javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100