[Bug] Other Affiliation name on Project member has incorrect error messages
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- frontend
Research direction
The payload names no source files; this repo holds documentation and issues, so the fix lives in the DMP Tool application code. Reproduce on the dev project member edit page, choose "Other" as the affiliation, leave the Other Affiliation Name blank, and save. Find the member form's affiliation validation and mark the other-name field required, attach its error to that field, scroll to the first invalid field on save, and replace the generic "Affiliation is required" text. Done when the blank name field shows its own error and the page scrolls to it.
Written by the indexing model from the issue text.
Description
Summary of the issue
If you select "Other" as an affiliation for a project member, you are required to add the name of the other affiliation, but it's not marked as required, and the error message if you try to save doesn't show on the right field.
Steps to Reproduce
Specific steps to reproduce the issue:
- Open a Project
- Add a new Project Member
- Select "Other" as the affiliation
- Leave "Other Affiliation Name" field blank
- Attempt to save
Actual behavior
Four things are wrong:
- "Other Affiliation Name" is not marked as required when it is
- When you hit Save, it looks like nothing happens; it doesn't scroll up to the error
- The error message says "Affiliation is required" which isn't helpful because "Affiliation" has something in it
- There is no error message on "other Affiliation Name" saying you need to complete it.
Expected behavior
- Add (required) to Other Affiliation Name
- Scroll up to the problem field when you try to save
- Have the error message only on the blank field
Reproduction Chance
100%
Screenshots
Links to impacted areas
https://dmptool-dev.uc3dev.cdlib.net/en-US/projects/136426/members/231347/edit
Workarounds
You can save once you fill out the Other Affiliation Name field
Environment/Context
Dev, Chrome
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
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.
More from CDLUC3/dmptool-doc
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
CDLUC3/dmptool-doc#651 ·
-
External
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
CDLUC3/dmptool-doc#608 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
CDLUC3/dmptool-doc#599 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
CDLUC3/dmptool-doc#597 ·
-
[Bug] When there is no Guidance on a template, no Customize button appears, and text is not accurateOpenbug External
Difficulty 1/5 Under an hour Newbie friendliness 67/100
CDLUC3/dmptool-doc#584 ·
All issues in CDLUC3/dmptool-doc
Similar issues
-
Potential Bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Comfy-Org/ComfyUI_frontend#23773 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
jellyfin/jellyfin-web#8865 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
horizon-rust/horizon#18345 ·
Maintainers usually reply within 1 day
-
area/renderer bug plugin/echarts priority/P3
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day