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.

[SOLVED] Report Ver...
 
Notifications
Clear all

[SOLVED] Report Version detail : include elements of sub-projects

3 Posts
2 Users
0 Reactions
1,955 Views
Tony
 Tony
(@tony44)
Posts: 131
Active Member
Topic starter
 
[#7253]

Hi,

The "Version detail" report (versionDetail.php) does not display the elements of the sub-projects of the project selected as a parameter (it only displays the elements directly attached to the selected project).
It would seem more logical to also display the elements of the sub-projects.

To get this result, I replaced line 173:

$crit.=" and ".$obj->getDatabaseColumnName('idProject')."=$paramProject";

By :

$crit.=" and idProject in " . getVisibleProjectsList(false,$paramProject);

I now get the desired result.
Is this change correct ?
Is it possible to include the change in the next version ?

Thanks


Tony44

 
Posted : 01 Feb 2021 1H46
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Almost that.
Correct fix i s

$crit.=" and ".$obj->getDatabaseColumnName('idProject')." in " . getVisibleProjectsList(false,$paramProject);

​​​​​​​Will be included in next patch


 
Posted : 01 Feb 2021 13H40
Tony
 Tony
(@tony44)
Posts: 131
Active Member
Topic starter
 

Great ! thanks


Tony44

 
Posted : 02 Feb 2021 1H30
Share:

Scroll to Top