Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove redundant check
  • Loading branch information
kraih committed Apr 23, 2017
1 parent 7242e8b commit 99ab333
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

7.31 2017-04-22
7.31 2017-04-23
- Removed deprecated files, slurp and spurt functions from Mojo::Util.
- Removed deprecated parts attribute from Mojo::Home.
- Removed deprecated slurp and spurt methods from Mojo::ByteStream.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/TagHelpers.pm
Expand Up @@ -78,8 +78,8 @@ sub _input {
# Checkbox or radiobutton
my $type = $attrs{type} || '';
if ($type eq 'checkbox' || $type eq 'radio') {
delete $attrs{checked} if @values;
my $value = $attrs{value} // 'on';
delete $attrs{checked};
$attrs{checked} = undef if grep { $_ eq $value } @values;
}

Expand Down

0 comments on commit 99ab333

Please sign in to comment.