Skip to content

Commit

Permalink
Item10854: parse input as boolean
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/FormPlugin@11869 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
ArthurClemens authored and ArthurClemens committed Jun 7, 2011
1 parent 9b88c66 commit 1afbedc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/FormPlugin/FieldData.pm
Expand Up @@ -154,7 +154,7 @@ sub _parseOptions {
$options->{disabled} = 'disabled';
}
}
elsif ( $params->{disabled} ne 'off' ) {
elsif ( Foswiki::Func::isTrue( $params->{disabled} || 'off' ) ) {
my @items = split( /\s*,\s*/, $params->{disabled} );
$options->{disabled} = \@items;
}
Expand Down

0 comments on commit 1afbedc

Please sign in to comment.