Skip to content

Instantly share code, notes, and snippets.

@iainurquhart
Created August 31, 2011 00:18
Show Gist options
  • Save iainurquhart/1182497 to your computer and use it in GitHub Desktop.
Save iainurquhart/1182497 to your computer and use it in GitHub Desktop.
taxonomy bugfix
FROM LINE 182 to 194 OF: system/expressionengine/third_party/taxonomy/mcp.taxonomy.php
// build our member_groups array for our multiselect options
foreach( $member_groups as $member_group )
{
// only add to the array if the member group can actuall access the taxonomy module
if( $this->EE->ttree->can_access_taxonomy($member_group['group_id']) )
{
$vars['member_groups'][$member_group['group_id']] = $member_group['group_title'];
}
else
{
$vars['member_groups'] = NULL;
}
}
REPLACE ALL OF THE ABOVE WITH
$vars['member_groups'] = NULL;
// build our member_groups array for our multiselect options
foreach( $member_groups as $member_group )
{
// only add to the array if the member group can actuall access the taxonomy module
if( $this->EE->ttree->can_access_taxonomy($member_group['group_id']) )
{
$vars['member_groups'][$member_group['group_id']] = $member_group['group_title'];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment