From d256989a19dd100823d35a11929edb1ae07d9883 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Fri, 4 Mar 2016 11:35:51 -0800 Subject: optimize package list on order new package, RT#39822 --- httemplate/elements/select-part_pkg.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'httemplate/elements/select-part_pkg.html') diff --git a/httemplate/elements/select-part_pkg.html b/httemplate/elements/select-part_pkg.html index fb45c0efa..e5692a798 100644 --- a/httemplate/elements/select-part_pkg.html +++ b/httemplate/elements/select-part_pkg.html @@ -155,6 +155,11 @@ if ( exists($opt{'classnum'}) && defined($opt{'classnum'}) ) { die 'Use of toggle_disabled with classnum has not been implemented' if exists $hash{'classnum'}; +$opt{'select'} = 'part_pkg.*, setup_option.optionvalue AS _setup_fee, + recur_option.optionvalue AS _recur_fee' + unless $opt{'select'}; +$opt{'addl_from'} .= FS::part_pkg->join_options_sql; + $opt{'extra_sql'} .= ( keys(%hash) ? ' AND ' : ' WHERE ' ). FS::part_pkg->curuser_pkgs_sql; -- cgit v1.2.1