From d1f696ee0e70aa489e306d2e1d46c5c7742dabf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 10 May 2018 20:20:37 +0200 Subject: [PATCH] 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 --- src/action.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/action.js b/src/action.js index e535f09e32..8a8f187e21 100644 --- a/src/action.js +++ b/src/action.js @@ -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 {