Skip to content

Commit

Permalink
Closes #5269 Optgroup class identifiers.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed May 31, 2024
1 parent 6a0a4ca commit baa171c
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 58 deletions.
3 changes: 2 additions & 1 deletion e107_handlers/form_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3575,7 +3575,8 @@ public function _uc_select_cb($treename, $classnum, $current_value, $nest_level)
*/
public function optgroup_open($label, $disabled = false, $options = null)
{
return "<optgroup class='optgroup ".varset($options['class'])."' label='{$label}'".($disabled ? " disabled='disabled'" : '').">\n";
$unique = 'optgroup-'.$this->name2id($label);
return "<optgroup class='optgroup $unique ".varset($options['class'])."' label='{$label}'".($disabled ? " disabled='disabled'" : '').">\n";
}

/**
Expand Down
Loading

0 comments on commit baa171c

Please sign in to comment.