Forum

Bugs following upgr...
 
Notifications
Retirer tout

Bugs following upgrade to 8.3.0

2 Posts
2 Utilisateurs
0 Reactions
2,059 Vu
(@avris)
Posts: 8
Active Member
Début du sujet
 
[#6411]

Hi,

Following latest upgrade from 8.2.4 to 8.3.0 we noticed errors in the log.

2019-12-15 10:50:17.565 ===== TRACE ===== NEW CONNECTED USER '******snip***'
2019-12-15 10:50:23.334 ===== TRACE ===== Cron started at 15/12/2019 10:50:23
2019-12-15 10:50:24.626
** ERROR ** [V8.3.0] ERROR **
2019-12-15 10:50:24.627 ** ERROR ** [V8.3.0] on file '/var/www/proj/report/availabilitySynthesis.php' at line (104)
2019-12-15 10:50:24.627 ** ERROR ** [V8.3.0] cause = A non-numeric value encountered
2019-12-15 10:50:24.627 ===== TRACE ===== Error while executing script : try and restart
2019-12-15 11:26:35.767 ** ERROR ** [V8.3.0] ERROR **
2019-12-15 11:26:35.767
** ERROR ** [V8.3.0] on file '/var/www/proj/model/PlannedWork.php' at line (1512)
2019-12-15 11:26:35.767
** ERROR ** [V8.3.0] cause = Undefined property: GlobalPlanningElement::$fixPlanning
2019-12-15 11:28:44.981 ===== TRACE ===== DISCONNECTED USER '
***snip******'

The following changes resolved our issues:

diff --git a/report/availabilitySynthesis.php b/report/availabilitySynthesis.php
index f3a31cac..f29958b7 100644
--- a/report/availabilitySynthesis.php
+++ b/report/availabilitySynthesis.php
@@ -101,6 +101,9 @@ if ($paramPeriodScale=="month") {
 } else if ($paramPeriodScale=="week") {
 	$start=date('Y-m-d',firstDayofWeek(date('W'), date('Y'),0));
 	$startValue=substr($start,0,4).substr($start,5,2).substr($start,8,2);
+	if ($paramPeriodValue == '') {
+		$paramPeriodValue = 1;
+	}
 	$end=addDaysToDate($start, ($paramPeriodValue*7)-1);
 	$endValue=substr($end,0,4).substr($end,5,2).substr($end,8,2);
 	$where.= " and day>='$startValue' and day<='$endValue'";


diff --git a/model/GlobalPlanningElement.php b/model/GlobalPlanningElement.php
index 27dd84c6..83cb16b8 100644
--- a/model/GlobalPlanningElement.php
+++ b/model/GlobalPlanningElement.php
@@ -86,6 +86,7 @@ class GlobalPlanningElement extends SqlElement {
   public $idStatus;
   public $idResource;
   public $isGlobal=1;
+  public $fixPlanning;
   // public $validatedCalculated;
   // public $validatedExpenseCalculated;
   // public $_workVisibility;

Regards,
Avri


 
Posté : 15 Déc PM 16:1212
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Thanks for the issues and posting some fixes.

1) report availability synthesis
Issue occurs if no period is week and number of weeks is not set (empty)
The fix we applied is defferent from yours.
Instead of setting default value to 1, we moved control of the field (wontrol was doen for periodivity month and not for week)

2) Global planning
Issue occurs when calculating planning if you added links from planning element (project, activity, milstone, ...) to non planable item (ticket, action, decision) in Global Planning.
You fix fixes planning calculation issue but leads to blank screen on Global Planning
We fixed issue on PlaanedWork.php

Fixed will be deployed on V8.3.1


 
Posté : 15 Déc PM 20:1212
Share:
Retour en haut