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>
Wed, 15 Nov 2017 21:00:26 +0000 (16:00 -0500)
httemplate/elements/tr-select-reason.html

index 6f126d3..a4e0c03 100755 (executable)
@@ -220,7 +220,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 ) {