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>
Mon, 18 Jun 2018 20:05:44 +0000 (16:05 -0400)
httemplate/elements/tr-select-reason.html

index 6f739fc..b0aa94a 100755 (executable)
@@ -221,7 +221,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 ) {