Author Topic: Errors in classes/ps_userfield.php linking labels  (Read 2296 times)

doorknob

  • Jr. Member
  • **
  • Posts: 151
Errors in classes/ps_userfield.php linking labels
« 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:
Code: [Select]
        echo '<label for="'.$field->name.'_field">'.$field->title.'</label>';
to
Code: [Select]
        echo '<label for="'.$field->name;
if( $field->type != 'select' ) echo '_field';
if( $field->type == 'multicheckbox' ) echo '1';
echo '">'.$field->title.'</label>';

Regards
Phil