From 21ff3d167584294a08fd5cb6415dee72a8097711 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 4 Aug 2023 12:47:04 +0000 Subject: [PATCH] Bug 27378: (QA follow-up) Tidy admin/preferences.pl Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- admin/preferences.pl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/admin/preferences.pl b/admin/preferences.pl index 73b8c442e3..8d6fd096cd 100755 --- a/admin/preferences.pl +++ b/admin/preferences.pl @@ -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'}; } -- 2.39.5