Browse Source

Merge pull request #1786 from rohitwaghchaure/upload_attendence_error

[Fix] Attendence upload, system not throwing an exception for wrong input.
version-14
Rushabh Mehta 9 years ago
parent
commit
090446fc82
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/public/js/frappe/upload.js

+ 1
- 1
frappe/public/js/frappe/upload.js View File

@@ -166,7 +166,7 @@ frappe.upload = {
} }
if(r.exc) { if(r.exc) {
// if no onerror, assume callback will handle errors // if no onerror, assume callback will handle errors
opts.onerror ? opts.onerror(r) : opts.callback(null, null, r);
opts.onerror ? opts.onerror(r) : opts.callback(null, r);
return; return;
} }
var attachment = r.message; var attachment = r.message;


Loading…
Cancel
Save