Created
August 31, 2011 00:18
-
-
Save iainurquhart/1182497 to your computer and use it in GitHub Desktop.
taxonomy bugfix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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