Bug 27378: (QA follow-up) Tidy admin/preferences.pl

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Katrin Fischer 2023-08-04 12:47:04 +00:00 committed by Tomas Cohen Arazi
parent 49bfb9ff39
commit 21ff3d1675
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -59,14 +59,14 @@ sub _get_chunk {
if( $options{'syntax'} ){
$chunk->{'syntax'} = $options{'syntax'};
}
if( $options{'type'} ) {
if( $options{'type'} eq 'modalselect' ){
$chunk->{'source'} = $options{'source'};
if ( $options{'type'} ) {
if ( $options{'type'} eq 'modalselect' ) {
$chunk->{'source'} = $options{'source'};
$chunk->{'exclusions'} = $options{'exclusions'} // "";
$chunk->{'required'} = $options{'required'} // "";
$chunk->{'type'} = 'modalselect';
} elsif( $options{'type'} eq 'modaljs' ){
$chunk->{'type'} = 'modaljs';
$chunk->{'required'} = $options{'required'} // "";
$chunk->{'type'} = 'modalselect';
} elsif ( $options{'type'} eq 'modaljs' ) {
$chunk->{'type'} = 'modaljs';
$chunk->{'initiator'} = $options{'initiator'};
$chunk->{'processor'} = $options{'processor'};
}