Error when setting default value on a reference field in creationView
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 3.9k
- Forks
- 703
- PR merge metrics
- No merged PRs in 30d
Description
If you will try to create an item with default-values set to `related_id: XXX`, where `related_id` is a `reference` field, and XXX is not in list of first 30 items, it will lead to JS exception (e.g. "Create related comment" from examples)
Refs #841
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
Reproduce the problem in creationView using the “Create related comment” example, setting a reference field default such as related_id to an item outside the first 30 results. Start by tracing creationView’s reference-field handling and the related item lookup. Done means creating the item no longer throws a JavaScript exception and the default reference is handled correctly.
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
- 35/100