From: Christopher Burger Date: Wed, 15 Nov 2017 21:00:26 +0000 (-0500) Subject: RT# 77470 - Fixed error with select reason drop down box, not working when no pre_opt... X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=d6854fbb7a94e8be85d2d66aea2328e6e4bc9725;p=freeside.git RT# 77470 - Fixed error with select reason drop down box, not working when no pre_options listed --- diff --git a/httemplate/elements/tr-select-reason.html b/httemplate/elements/tr-select-reason.html index 6f739fc1d..b0aa94af5 100755 --- a/httemplate/elements/tr-select-reason.html +++ b/httemplate/elements/tr-select-reason.html @@ -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 ) {