X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-part_pkg.html;h=1f7b42f8698b4510f2d9c0e05d6ca041d8fe7d1c;hb=2a0b5339081a439a8c5ec1f2b9cd28b63fd3fa49;hp=ba1d7b72e302028fba1e3fec693f862304e808d7;hpb=d4d0595a16d26404adc33acd6c1002d94cf132e4;p=freeside.git diff --git a/httemplate/elements/select-part_pkg.html b/httemplate/elements/select-part_pkg.html index ba1d7b72e..1f7b42f86 100644 --- a/httemplate/elements/select-part_pkg.html +++ b/httemplate/elements/select-part_pkg.html @@ -125,6 +125,7 @@ if ($opt{'toggle_disabled'}) { order_by pre_options post_options + select ) ) { die "Cannot use toggle_disabled with $someopt" if exists $opt{$someopt}; @@ -153,7 +154,10 @@ if ( exists($opt{'classnum'}) && defined($opt{'classnum'}) ) { # currently can't handle this, either die 'Use of toggle_disabled with classnum has not been implemented' - if exists $hash{'classnum'}; + if $opt{'toggle_disabled'} && exists($hash{'classnum'}); + +# CAUTION: For proper functioning of toggle_disabled, +# please ensure changes to default options are synced with misc/xmlhttp-part_pkg.cgi $opt{'select'} = 'part_pkg.*, setup_option.optionvalue AS _setup_fee, recur_option.optionvalue AS _recur_fee'