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] Upgrade to...
 
Notifications
Clear all

[SOLVED] Upgrade to 10.4.0

4 Posts
2 Users
0 Reactions
1,417 Views
(@loicr)
Posts: 125
Active Member
Topic starter
 
[#8940]

Morning,

After upgrade, when i try to close activities, i've got RED ERROR and log is:

2023-06-19 08:39:37.092 ===== TRACE ===== =====================================
2023-06-19 08:39:37.092 ===== TRACE =====
2023-06-19 08:39:37.092 ===== TRACE ===== DATABASE UPDATE COMPLETED TO VERSION V10.4.0
2023-06-19 08:39:37.092 ===== TRACE =====
2023-06-19 08:39:37.092 ===== TRACE ===== =====================================
2023-06-19 08:39:42.638 ===== TRACE ===== NEW CONNECTED USER 'XXXXX'
2023-06-19 08:39:48.517 ===== TRACE ===== Cron started at 19/06/2023 08:39:48
2023-06-19 08:45:39.671 ** ERROR ** [V10.4.0] ERROR **
2023-06-19 08:45:39.672
** ERROR ** [V10.4.0] on file '/var/www/projeqtor/model/ActivityPlanningElementMain.php' at line (816)
2023-06-19 08:45:39.672
** ERROR ** [V10.4.0] cause = Undefined variable $hasSubProjects
2023-06-19 08:45:56.181
** ERROR ** [V10.4.0] ERROR **

LR


 
Posted : 19 Jun 2023 10H48
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Ticket #7208 recorded


 
Posted : 19 Jun 2023 13H38
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

Issue occurs only when Consolidation of validated data is set to "ALWAYS" (default is IS SET)
Issue will be deployed on V10.4.1
The fix is to replace lines 817 and 819 (two replaces required) in model/ActivityPlanningElementMain.php
from

if ($hasSubProjects) $this->validatedExpenseCalculated=1;

to

if ($hasSubActivity) $this->validatedExpenseCalculated=1;

 


 
Posted : 19 Jun 2023 14H05
(@loicr)
Posts: 125
Active Member
Topic starter
 

Thanks !


 
Posted : 19 Jun 2023 17H27
Share:

Scroll to Top