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.

Missing retun in pr...
 
Notifications
Clear all

Missing retun in projeqtor

2 Posts
2 Users
0 Reactions
2,407 Views
(@antonio-grr)
Posts: 84
Active Member
Topic starter
 
[#4334]

Hi.
In new version (V6.2.4) of routine getVisibleProjectsList of projeqtor.php some return are missing in two statements so

if ( sessionTableValueExist('visibleProjectsList', $keyVPL)) {
getSessionTableValue('visibleProjectsList', $keyVPL);
}
if ($project == "*" or $project == '') {
$user = getSessionUser();
setSessionTableValue('visibleProjectsList', $keyVPL, transformListIntoInClause ( $user->getVisibleProjects ( $limitToActiveProjects ) ));
getSessionTableValue('visibleProjectsList', $keyVPL);
}
should be changed into

if ( sessionTableValueExist('visibleProjectsList', $keyVPL)) {
return getSessionTableValue('visibleProjectsList', $keyVPL);
}
if ($project == "*" or $project == '') {
$user = getSessionUser();
setSessionTableValue('visibleProjectsList', $keyVPL, transformListIntoInClause ( $user->getVisibleProjects ( $limitToActiveProjects ) ));
return getSessionTableValue('visibleProjectsList', $keyVPL);
}
Best regards


 
Posted : 09 May 2017 19H03
(@babynus)
Posts: 14952
Member Admin
 

Thanks for pointing out the issue.

It may not lead to functional issue, but fix may improve perfirmance.
Fix will be included in next patch/version


 
Posted : 10 May 2017 1H54
Share:

Scroll to Top