Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

global paramIconSiz...
 
Notifications
Clear all

global paramIconSize saving problem

2 Posts
2 Users
0 Reactions
3,395 Views
(@g-miraillet)
Posts: 1
New Member
Topic starter
 
[#1962]

Hello,
I don't know if this one as already been reported :

When editing the global 'paramIconSize' in globals parameters view, and if a user has already set his own value, the new global parameter will not be saved.
Instead, the parameter is saved as a new one in database with a NULL 'parameterCode' value.
After a little modification in 'saveParameter.php' (tool/saveParameter.php), the parameter is now properly saved.

Before : (line 141)

      $crit['parameterCode']=$fld;
      $obj=SqlElement::getSingleSqlElementFromCriteria('Parameter', $crit);

After :

      $crit['parameterCode']=$fld;
      $crit['idUser']=null;
      $crit['idProject']=null;
      $obj=SqlElement::getSingleSqlElementFromCriteria('Parameter', $crit);

As the global parameter and user parameter has the same 'parameterCode', the 'getSingleElementFromCriteria()' method can't retrieve a unique result.

By the way, thanks for your great work on this project, it's awesome.


 
Posted : 21 Aug 2014 19H09
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Many thanks for reporting and fixing this issue.
Recorded as #1502 and will be included in next version.


 
Posted : 21 Aug 2014 21H17
Share:

Scroll to Top