X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-part_pkg.html;h=d9f1fc90d24921f78ac977ec3866835000332d56;hb=64c1a0ea453f682286f7727147fc60bde5a62e94;hp=2bd425e8d95680236a15999d0b6c2e9ca6f557a4;hpb=bb7f04b50d02e5699f740b3511524a32c1a276af;p=freeside.git diff --git a/httemplate/elements/select-part_pkg.html b/httemplate/elements/select-part_pkg.html index 2bd425e8d..d9f1fc90d 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{'extra_sql'} .= ( keys(%hash) ? ' AND ' : ' WHERE ' ). FS::part_pkg->curuser_pkgs_sql;