View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Bugs following upgrade to 8.3.0 - ProjeQtOr
 
 

Bugs following upgrade to 8.3.0

More
15 Dec 2019 14:21 #1 by avris
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

Please Log in or Create an account to join the conversation.

More
15 Dec 2019 18:56 #2 by babynus
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

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.032 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.