[freeside-commits] freeside/httemplate/search inventory_item.html, 1.7, 1.8
Ivan,,,
ivan at wavetail.420.am
Fri Feb 12 18:17:08 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv27804
Modified Files:
inventory_item.html
Log Message:
fix inventory item search w/customer classes
Index: inventory_item.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/inventory_item.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- inventory_item.html 13 Feb 2010 02:16:00 -0000 1.7
+++ inventory_item.html 13 Feb 2010 02:17:06 -0000 1.8
@@ -79,7 +79,7 @@
my $classnum = $cgi->param('classnum');
$classnum =~ /^(\d+)$/ or errorpage("illegal classnum $classnum");
$classnum = $1;
-my $extra_sql = 'inventory_item.classnum = $classnum ';
+my $extra_sql = "WHERE inventory_item.classnum = $classnum ";
my $inventory_class = qsearchs( {
'table' => 'inventory_class',
@@ -98,7 +98,7 @@
}
my $count_query =
- "SELECT COUNT(*) FROM inventory_item WHERE $extra_sql";
+ "SELECT COUNT(*) FROM inventory_item $extra_sql";
my $link = sub {
my $inventory_item = shift;
More information about the freeside-commits
mailing list