Opened 12 years ago
Closed 12 years ago
#5453 closed defect (bug) (fixed)
xprofile Administration - js do not reset options when [x] clicked
| Reported by: | imath | Owned by: | imath |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.0 |
| Component: | Extended Profile | Version: | 1.5 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: |
Description
Hi,
While testing #5220, i've found that when creating/editing a field with options to set (radio / checkbox / selectbox..). If you add some text in the option field, then click on [x] link, the field is hidden, but the value is not removed. As a result when saving / updating the field, the "removed" option is saved.
I think it's a js issue due to the fact the id of the field is different thant the id of the container div. I suggest the attached diff to solve it.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Good find. I've confirmed this exist all the way back to 1.5 (it wasn't easy to go much further back).