Opened 10 years ago
Closed 10 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 |
---|---|---|---|
Milestone: | 2.2 | Priority: | normal |
Severity: | normal | Version: | 2.1 |
Component: | Extended Profile | 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.
Good find. Let's get a unit test for it.