From 028abd2d08ce9bfcba58aff53346089bfe2600f7 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 31 Jan 2013 11:20:10 +0530 Subject: [PATCH] bugfix in session update and separated GET and POST queries --- public/js/startup.js | 1 + startup/event_handlers.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/public/js/startup.js b/public/js/startup.js index e2413f124d..1ae3feb613 100644 --- a/public/js/startup.js +++ b/public/js/startup.js @@ -117,6 +117,7 @@ erpnext.update_messages = function(reset) { wn.call({ method: 'startup.startup.get_global_status_messages', + type:"GET", callback: set_messages }); diff --git a/startup/event_handlers.py b/startup/event_handlers.py index 3f04dc797f..2a74eeb58d 100644 --- a/startup/event_handlers.py +++ b/startup/event_handlers.py @@ -25,9 +25,11 @@ def on_login_post_session(login_manager): # create feed from webnotes.utils import nowtime from webnotes.profile import get_user_fullname + webnotes.conn.begin() home.make_feed('Login', 'Profile', login_manager.user, login_manager.user, '%s logged in at %s' % (get_user_fullname(login_manager.user), nowtime()), - login_manager.user=='Administrator' and '#8CA2B3' or '#1B750D') + login_manager.user=='Administrator' and '#8CA2B3' or '#1B750D') + webnotes.conn.commit() def comment_added(doc):