Do not set a default date_format in context when executing an action
Sao.common.date_format is in charge of using the session context as fallback. issue7419 review45071002
This commit is contained in:
1 parent
99a7eba794
commit
d1f696ee0e
1 file changed
-7
@@ -10,15 +10,8 @@
|
||||
Sao.Action.exec_action = function(action, data, context) {
|
||||
if (context === undefined) {
|
||||
context = {};
|
||||
} 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;
|
||||
}
|
||||
}
|
||||
if (data === undefined) {
|
||||
data = {};
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user