Bug #3625
closedUserlist uses CB profile Itemid when SEF is enabled instead of its own Itemid
Description
When SEF is enabled and you've a menu link to CBs Userlist as well as a menu link to CBs profile and you search on the Userlist it'll change the Itemid to the profile Itemid instead of keeping the Userlist Itemid. Works fine with SEF disabled.
Files
Updated by krileon over 12 years ago
It's due to $_CB_framework->itemid() not being populated when SEF is enabled. As a fallback it'll use the CB profile Itemid, which is good.
Updated by krileon over 12 years ago
We use JFactory::getURI()->getVar( 'Itemid' ) to retrieve the Itemid from the URL, but this isn't populated when SEF is enabled.
Updated by krileon over 12 years ago
- File 3625.patch 3625.patch added
- Status changed from Assigned to Resolved
- Assignee changed from krileon to beat
- % Done changed from 0 to 100
Implemented fix to first check for current active menu link. If none then try to get the Itemid from the current URL.
Updated by krileon over 12 years ago
Alternative is to simply pull Itemid from $_REQUEST, which maybe a better approach.
Updated by beat about 12 years ago
- Status changed from Resolved to Closed
- Estimated time set to 2:00 h
Fixed as suggested in r1876 .
Thank you Kyle.