From a4255de57741d87a6f0d71a2ae26f0dc8c55ed57 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 21 Apr 2010 09:31:35 +0000 Subject: " --- httemplate/elements/select-part_pkg.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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 71066eb9f..9d41b07dc 100644 --- a/httemplate/elements/select-part_pkg.html +++ b/httemplate/elements/select-part_pkg.html @@ -44,6 +44,7 @@ if ( exists($opt{'classnum'}) && defined($opt{'classnum'}) ) { } #else -1 or not specified, all classes, so don't set classnum } -$opt{'extra_sql'} .= ' AND '. FS::part_pkg->curuser_pkgs_sql; +$opt{'extra_sql'} .= ( keys(%hash) ? ' AND ' : ' WHERE ' ). + FS::part_pkg->curuser_pkgs_sql; -- cgit v1.2.1