RT# 77470 - Fixed error with select reason drop down box, not working when no pre_opt...
authorChristopher Burger <burgerc@freeside.biz>
Wed, 15 Nov 2017 21:00:26 +0000 (16:00 -0500)
committerChristopher Burger <burgerc@freeside.biz>
Tue, 19 Jun 2018 13:25:23 +0000 (09:25 -0400)
httemplate/elements/tr-select-reason.html

index 2fe676b..f25171f 100755 (executable)
@@ -239,7 +239,7 @@ my @reasons = qsearch({
 });
 
 my @pre_options = ( 0 => 'Select reason...' );
-@pre_options = @{ $opt{'pre_options'} if $opt{'pre_options'} };
+@pre_options = @{ $opt{'pre_options'} } if $opt{'pre_options'};
 
 my @post_options;
 if ( $curuser->access_right($add_access_right) && !$hide_addnew ) {