
Hi,
I noticed that if I re-arrange the referral sources using (Referral Sources > List) it will arrange them correctly in the drop down, however it does not update the IDs in the database and displays the incorrect referral.
Ex:
A changed to second in list
B changed to first in list
C Left at C
If B is selected, it will show A (because ID is still being recognized to point to A)
So i would need to go into the MySQL DB and change them to the correct IDs for the order to stay.
Thanks,
Josh
Comment | File | Size | Author |
---|---|---|---|
#1 | 1124096.patch | 670 bytes | stennie |
Comments
Comment #1
stennie CreditAttribution: stennie commentedThere's a serious bug in the code that creates the 'grouped' select box ('flat' display appears OK).
It's using array_merge() to combine options, which has the documented side effect of renumbering numeric keys starting from 0. Essentially the IDs for grouped select will only match if you've never reordered or deleted sources :(.
Fix attached.
Cheers,
Stephen
Comment #2
stennie CreditAttribution: stennie commentedIt's actually a critical bug, as invalid IDs defeat the purpose of the module.
Cheers,
Stephen
Comment #3
Offlein CreditAttribution: Offlein commentedBummer - this module is Abandoned. I reported it, but don't have the time to maintain it, myself. :(
Comment #4
izzysanime CreditAttribution: izzysanime commentedI never got an email you replied, I think your patch fixed the issue. I will test it out for a few more days.
I really appreciate the fix.
Thanks,
Josh
Comment #5
dandaman CreditAttribution: dandaman commentedThanks. That fixed an issue for me! A very helpful patch that should be committed!