Since 5.2.1, users parameters are not saved until I disconnect and log in again. I think it worked in 5.2.0.
How to reproduce:
- Go to user parameters
- Change a parameter (display history for example)
- Save
- Go to user parameters again, display history has its old value
Since I have some custom developments on my ProjeQtOr version, I applied a diff from ProjeQtOr 5.2.0, so if you can't reproduce, please tell me and I will see if I missed a "id" becoming "idData" somewhere or something like this…
I already tested it in my environment and it worked well.
Did you test it in DEMO environment here in ProjQtiOr? Of not, my be you should give him a try.
You can't change user parameters in demo.projeqtor.org, that's why I couldn't check.
Guess I will have to check with another fresh installation of ProjeQtOr to compare…
I tested and first all seemed to work.
But when trying "Display history" option, I could reproduce issue : saved value is not retreived.
Ticket #1938 recorded.
NB : user parameters is disabled is Demo because everybody uses same few users, and so should not change some parameter values (such as language...)
Fixed !!
Fix is to replace lines 48-52 in /tool/saveDataToSession.php from
if (in_array($id, getParamtersList('userParameter'))) {
// OK, it is a user parameter
} else if (in_array($id, getParamtersList('globalParameter'))) {
// OK, it is a global parameter
to
if (array_key_exists($id, Parameter::getParamtersList('userParameter'))) {
// OK, it is a user parameter
} else if (array_key_exists($id, Parameter::getParamtersList('globalParameter'))) {
// OK, it is a global parameter
En poursuivant votre navigation, vous acceptez le dépôt de cookies tiers destinés au bon fonctionnement et à la sécurisation du site (gestion de session, reCaptcha) et à une analyse statistique anonymisée des accès sur notre site (Google Analytics). Si vous vous inscrivez, les informations que vous fournirez ne seront jamais divulguées à un tiers sous quelque forme que ce soit. En savoir plus
Cookies settings
×
Functional Cookies
Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.
Session
Please login to see yours activities!
Other cookies
Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.