diff --git a/public/js/wn/request.js b/public/js/wn/request.js index 535cd4b317..48200f0651 100644 --- a/public/js/wn/request.js +++ b/public/js/wn/request.js @@ -52,6 +52,7 @@ wn.call = function(opts) { } wn.request.call({ + type: opts.type || "POST", args: args, success: opts.callback, error: opts.error, diff --git a/webnotes/handler.py b/webnotes/handler.py index cbcefc910a..482a302120 100755 --- a/webnotes/handler.py +++ b/webnotes/handler.py @@ -157,6 +157,7 @@ def handle(): # login executed in webnotes.auth if webnotes.request_method == "POST": webnotes.conn.begin() + try: execute_cmd(cmd) except webnotes.ValidationError, e: