Forum

global paramIconSiz...
 
Notifications
Retirer tout

global paramIconSize saving problem

2 Posts
2 Utilisateurs
0 Reactions
3,365 Vu
(@g-miraillet)
Posts: 1
New Member
Début du sujet
 
[#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.


 
Posté : 21 Août PM 19:088
(@babynus)
Posts: 14952
Membre Admin
 

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


 
Posté : 21 Août PM 21:088
Share:
Retour en haut