Assumes index of first value is always [0]

janusman - June 25, 2008 - 23:47
Project:Workflow Required Fields
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

This breaks some fields like Content Taxonomy, whose first field value's index is the tid of the term.

wf_required_fields.inc checks values like this under wf_required_fields_get_missing_fields():

$value = $field[0][$column];

My suggestion is replace it with this code:
        $first_field_element = array_shift($field);
        $value = $first_field_element[$column];

 
 

Drupal is a registered trademark of Dries Buytaert.