[freeside-commits] freeside/httemplate/misc inventory_item-import.html, 1.6, 1.6.4.1
Ivan,,,
ivan at wavetail.420.am
Wed Oct 28 10:26:34 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv2769
Modified Files:
Tag: FREESIDE_1_9_BRANCH
inventory_item-import.html
Log Message:
fix inventory upload, RT#6366
Index: inventory_item-import.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/inventory_item-import.html,v
retrieving revision 1.6
retrieving revision 1.6.4.1
diff -u -d -r1.6 -r1.6.4.1
--- inventory_item-import.html 9 Dec 2008 01:46:53 -0000 1.6
+++ inventory_item-import.html 28 Oct 2009 17:26:32 -0000 1.6.4.1
@@ -11,6 +11,7 @@
'fields' => [ 'format', 'classnum', ],
'message' => 'Inventory import successful',
#XXX redirect via $itembatch? or just back to class browse?
+ #'url' => $p."search/phone_avail.html?availbatch=$availbatch",
'url' => $p."search/inventory_item.html?classnum=$classnum;avail=1",
)
%>
@@ -56,7 +57,7 @@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Import');
-$cgi->param =~ /^(\d+)$/ or errorpage("illegal classnum");
+$cgi->param('classnum') =~ /^(\d+)$/ or errorpage("illegal classnum");
my $classnum = $1;
my $inventory_class = qsearchs('inventory_class', { 'classnum' => $classnum } );
More information about the freeside-commits
mailing list