Needs review
Project:
Taxonomy Term Permissions
Version:
6.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2010 at 13:45 UTC
Updated:
21 Mar 2011 at 16:38 UTC
Jump to comment: Most recent file
Comments
Comment #1
stephenrobinson commentedComment #2
elliotttt commentedMight want to see this:
http://drupal.org/node/668704
Comment #3
stephenrobinson commentedHi,
Have fixed this issue, see the patch
Comment #4
stephenrobinson commentedCheers, found the offending line:
//$total_terms = count($vocabulary['#options']) - 1;
($vocabulary['#multiple']==1) ? $total_terms = count($vocabulary['#options']) : $total_terms = count($vocabulary['#options']) - 1;
Comment #5
peter.walter commentedBetter and more optimal use of the ternary operator would be:
Updated patch attached.
Comment #6
soulfroysOnly works for me with parentheses around the ternary statement: