Get current session before using it
This commit is contained in:
1 parent
7f3c67fced
commit
6b21afaa8f
1 file changed
+1
-1
+1
-1
@@ -13,6 +13,7 @@
|
||||
} else {
|
||||
context = jQuery.extend({}, context);
|
||||
}
|
||||
var session = Sao.Session.current_session;
|
||||
if (!('date_format' in context)) {
|
||||
if (session.context.locale && session.context.locale.date) {
|
||||
context.date_format = session.context.locale.date;
|
||||
@@ -48,7 +49,6 @@
|
||||
active_id: data.id || null,
|
||||
active_ids: data.ids
|
||||
};
|
||||
var session = Sao.Session.current_session;
|
||||
ctx = jQuery.extend(ctx, session.context);
|
||||
var eval_ctx = jQuery.extend({}, ctx);
|
||||
eval_ctx._user = session.user_id;
|
||||
|
||||
Reference in new issue
Block a user