VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: doorknob on August 26, 2008, 03:13:19 AM

Title: Errors in classes/ps_userfield.php linking labels
Post by: doorknob on August 26, 2008, 03:13:19 AM
The labels for 'select' and 'multicheckbox' type fields do not match the ids of the corresponding '<input' fields. There may be issues with other types of field, I have only tried these types (and 'delimiter'). To resolve the problems, I changed line 355 from:
        echo '<label for="'.$field->name.'_field">'.$field->title.'</label>';

to
        echo '<label for="'.$field->name;
if( $field->type != 'select' ) echo '_field';
if( $field->type == 'multicheckbox' ) echo '1';
echo '">'.$field->title.'</label>';


Regards
Phil