Posted by januario on December 4, 2005 at 12:51am
Jump to:
| Project: | Contact directory |
| Version: | 4.6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I've been trying to set up the Contact Directory Module and found that if the administrator edits the categories after data has been entered, the category shows up incorrectly when viewing the contact.
This happens if the categories are renamed and the renaming changes their alphabetical order.
Comments
#1
I've noticed when I assign a category to a contact it appears correctly while viewing the contact.
But when I click on "Contact directory" the category is not the same...
Somehow it got messed up.
I renamed my categories to fix this issue.
-lgm
#2
An earlier bug report fixes this problem:
in the function contact_dir_get_select_category (line 380 in contact_dir.module)
replace
return array_merge($categories, _contact_dir_get_categories());with
return ($categories + _contact_dir_get_categories());The array_merge function rebuilds the keys, not desirable here as the sql orders by name on line 369
HTH