X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Finventory_item-import.html;fp=httemplate%2Fmisc%2Finventory_item-import.html;h=c7edac6093a5a1f3fa590bb52e1ba218fea9bd2f;hb=3f596ab410502f4c1f7074ad732631bd73d5de79;hp=65a123e2a584e63dc4a400268b7fca2cbb699530;hpb=00156a6b621cc0e0227564ebbc53bda3aeb9dc14;p=freeside.git diff --git a/httemplate/misc/inventory_item-import.html b/httemplate/misc/inventory_item-import.html index 65a123e2a..c7edac609 100644 --- a/httemplate/misc/inventory_item-import.html +++ b/httemplate/misc/inventory_item-import.html @@ -11,6 +11,7 @@ Import a file containing <% PL($inventory_class->classname) %>, one per line. '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 @@ Upload file can be a text file or Excel spreadsheet. If an Excel spreadsheet, 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 } );