svn path=/Website/trunk/; revision=33176
This commit is contained in:
2017-03-16 15:40:19 +00:00
parent 02a36246b8
commit b83ebed9a6
2 changed files with 5 additions and 2 deletions

View File

@@ -181,6 +181,9 @@ function doLogin(prs_key, params)
// Liever geen session maar m_connections heeft dit al nodig voor zijn fac.initsession
// Bovendien voorkomen we zo dat een simpele user.lang() al een _require_prs_perslid triggert
Session("user_lang") = fac_lang || user.dblang();
Session("time_zone") = user.timezone();
return true;
}

View File

@@ -212,8 +212,8 @@ SafeOracle.prototype.Get = function _get (descfield, table, keyname, key)
// ident += "<system>";
var oraprefix = "BEGIN"
+ " DBMS_SESSION.SET_IDENTIFIER(" + safe.quoted_sql(ident) + ");"
+ " fac.initsession("+safe.quoted_sql(user_lang)+");"
+ " fac.initsession("+safe.quoted_sql(ident)+", "+safe.quoted_sql(user_lang)+", "+safe.quoted_sql(Session("time_zone"))+");"
+ "END;";
o.Execute( oraprefix );
%>