diff options
author | ivan <ivan> | 2009-10-28 17:26:32 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-10-28 17:26:32 +0000 |
commit | c310201fa58fc353dcda88197e2bebd8cdc5f5ba (patch) | |
tree | c68f44820932613e3f7fe40d9f2e07b7272d8d3e /httemplate/misc | |
parent | 45d41ae99ced1b28595b2f2080ac9186be6d33b5 (diff) |
fix inventory upload, RT#6366
Diffstat (limited to 'httemplate/misc')
-rw-r--r-- | httemplate/misc/inventory_item-import.html | 3 |
1 files changed, 2 insertions, 1 deletions
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 } ); |