Skip to content

Commit

Permalink
Added identifier as option's value
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Goldstein committed Mar 27, 2018
1 parent 8ca0b13 commit 2a1132f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TimeZoneSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static function get_options_for_select($params = []) {
}

protected static function make_zone_option($tzDatum, $params = []) {
$output = '<option';
$output = '<option value="' . $tzDatum['identifier'] . '"';
if($params['selected'] == $tzDatum['identifier'] && $tzDatum['primary'])
$output .= ' selected';
$output .= ">$tzDatum[alias]</option>";
Expand Down

0 comments on commit 2a1132f

Please sign in to comment.