diff options
-rw-r--r-- | httemplate/elements/form-file_upload.html | 2 | ||||
-rw-r--r-- | httemplate/misc/tax-import.cgi | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/elements/form-file_upload.html b/httemplate/elements/form-file_upload.html index 234438c57..4ab70ad9c 100644 --- a/httemplate/elements/form-file_upload.html +++ b/httemplate/elements/form-file_upload.html @@ -53,7 +53,7 @@ Example: var uploaded = document.getElementById('uploaded_files'); var a = uploaded.value.split(','); - if (uploaded.value.split(',').length == <% $opt{num_files} %>){ + if (success && uploaded.value.split(',').length == <% $opt{num_files} %>){ process(); }else{ var p = document.getElementById('uploadError'); diff --git a/httemplate/misc/tax-import.cgi b/httemplate/misc/tax-import.cgi index bca623fed..a695e9706 100644 --- a/httemplate/misc/tax-import.cgi +++ b/httemplate/misc/tax-import.cgi @@ -6,7 +6,7 @@ Import a CSV file set containing tax rate records. <% include( '/elements/form-file_upload.html', 'name' => 'TaxRateUpload', 'action' => 'process/tax-import.cgi', - 'num_files' => 4, + 'num_files' => 5, 'fields' => [ 'format', ], 'message' => 'Tax rates imported', ) |