Skip to content

Commit

Permalink
Merge remote branch 'cheby/7296_xml_settings_1'
Browse files Browse the repository at this point in the history
  • Loading branch information
moominpappa committed Sep 10, 2015
2 parents bb5eb85 + 22d4f72 commit 8a1f932
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Eludia/Presentation.pm
Original file line number Diff line number Diff line change
Expand Up @@ -936,20 +936,20 @@ sub draw_form_field {

if ($_REQUEST {__only_field}) {

my @fields = split (',', $_REQUEST {__only_field});
my $fields = [split (',', $_REQUEST {__only_field})];

if ($field -> {type} eq 'hgroup') {
my $html = '';
foreach (@{$field -> {items}}) {$html .= draw_form_field ($_, $data)}
return $html;
}
elsif ($field -> {type} eq 'radio') {
elsif ($field -> {type} eq 'radio' && !($field -> {name} ~~ $fields)) {
my $html = '';
foreach (@{$field -> {values}}) {$html .= draw_form_field ($_, $data)}
return $html;
}
else {
(grep {$_ eq $field -> {name}} @fields) > 0 or return '';
(grep {$_ eq $field -> {name}} @$fields) > 0 or return '';
}

}
Expand Down

0 comments on commit 8a1f932

Please sign in to comment.