taxonomy term 0 not showing

thummel - March 5, 2008 - 23:06
Project:Block Term
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

When you edit a node and display the "Block Taxonomy Settings", the first term is not showing.. the listing starts from 1 instead of 0.

To make it work, I had to comment out this line 67 of blockterm.module:
vocab_select['#options'] = is_string($vocab_select['#options']["0"]) ? $vocab_select['#options'] : array(0 => theme('none_option')) + $vocab_select['#options'];

#1

g.idema - April 11, 2008 - 16:49

This problem is related to the following problem: http://drupal.org/node/199675
The patch is also comparable. Instead of commenting out line 67 like you did, just replace ['#options']["0"] with ['#options'][''].
For some reason, this was changed in the taxonomy module between 5.3 and 5.4

 
 

Drupal is a registered trademark of Dries Buytaert.