Opened 12 years ago
Closed 12 years ago
#6082 closed defect (bug) (fixed)
Incorrect results from xprofile_get_field_id_from_name( $field_name )
| Reported by: | dontdream | Owned by: | r-a-y |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.2 |
| Component: | Extended Profile | Version: | 2.1 |
| Severity: | normal | Keywords: | has-patch needs-unit-tests |
| Cc: |
Description
When a field name and an option value are the same, the function
xprofile_get_field_id_from_name( $field_name )
may return the option ID instead of the desired field ID.
The attached patch restricts the search to rows with parent_id = 0.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Good find. Let's get a unit test for it.