View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] [5.2.1] User parameters not saved until restart? - ProjeQtOr
 
 

[SOLVED] [5.2.1] User parameters not saved until restart?

More
19 Jan 2016 11:09 - 16 Feb 2016 09:30 #1 by papjul
Good day,

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…
Last edit: 16 Feb 2016 09:30 by papjul.

Please Log in or Create an account to join the conversation.

More
19 Jan 2016 12:06 #2 by climb4fun
Hi Papjul,

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.

climb4fun

Please Log in or Create an account to join the conversation.

More
19 Jan 2016 12:10 #3 by papjul
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…

Please Log in or Create an account to join the conversation.

More
19 Jan 2016 12:19 - 19 Jan 2016 12:19 #4 by climb4fun
Yes, you are right, in demo user parameters not enabled. Helped by you, I discovered this today for the first time.
Last edit: 19 Jan 2016 12:19 by climb4fun.

Please Log in or Create an account to join the conversation.

More
19 Jan 2016 13:04 #5 by babynus
Hi,

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...)

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
19 Jan 2016 19:29 #6 by babynus
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

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.034 seconds

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.