Active
Project:
Translation Access
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2010 at 15:09 UTC
Updated:
2 Jul 2010 at 13:15 UTC
This great module is not compatible with the Organic Groups module.
The OG module changes how the node/%node/edit callback works. Normally this callback is passed in 2 parameters: $op and $node. OG changes this to just $node.
The fix for Translation Acces: i18n_acces.module add these lines after line 105 (global $user;):
// The og module changes the parameter orde of the node/%/edit menu item: catch it
if (!empty($op->nid)) {
$node = $op;
$op = 'update';
}It would be better if OG did not change how basic Drupal stuff works offcourse... But this fix is probably a bit easier to implement :)
Comments
Comment #1
toemaz commentedWould it be possible to make a patch? Also the description is far from clear "// The og module changes the parameter orde of the node/%/edit menu item: catch it". I'm trying to bend my brain to understand what it means.
Comment #2
freakalis commentedI hade the same issue when building a site with both OG and i18n_access. I wrote my own custom callback that checks access for both OG and i18n_access
Comment #3
toemaz commentedNice trick.
I bet it will occur more that 2 modules are both altering the menu. I have no idea whether D7 has a solution for this or not. For the time being, we'll need manually fix the clash I presume.