Hello
I just updated the latest version of projeqtor.
The assignments screen shows me the following errors (from the log file) :
2020-06-17 17:48:34.836 ===== TRACE ===== =====================================
2020-06-17 17:48:34.836 ===== TRACE =====
2020-06-17 17:48:34.836 ===== TRACE ===== DATABASE UPDATE COMPLETED TO VERSION V8.5.0
2020-06-17 17:48:34.836 ===== TRACE =====
2020-06-17 17:48:34.836 ===== TRACE ===== =====================================
2020-06-17 17:48:34.837 ===== TRACE =====
2020-06-17 17:48:37.861 ----- DEBUG ----- loginCheck : current db version = 'V8.5.0'
2020-06-17 17:48:37.888 ----- DEBUG ----- User->authenticate('XXXXXXXX', 'YYYYYYYYYY')
2020-06-17 17:48:37.896 ----- DEBUG ----- User->authenticate : sha256 encryption
2020-06-17 17:48:37.896 ----- DEBUG ----- User->authenticate : Successfull login
2020-06-17 17:48:38.558 ===== TRACE ===== NEW CONNECTED USER 'XXXXXXXX'
2020-06-17 17:48:50.137 ===== TRACE ===== Cron started at 17/06/2020 17:48:50
2020-06-17 17:49:00.498 ** ERROR ** [V8.5.0] ERROR **
2020-06-17 17:49:00.498 ** ERROR ** [V8.5.0] on file '/srv/http/projeqtor/model/ImputationLine.php' at line (1037)
2020-06-17 17:49:00.498 ** ERROR ** [V8.5.0] cause = Array and string offset access syntax with curly braces is deprecated
2020-06-17 17:49:17.954 ** ERROR ** [V8.5.0] ERROR **
2020-06-17 17:49:17.955 ** ERROR ** [V8.5.0] on file '/srv/http/projeqtor/model/ImputationLine.php' at line (1037)
2020-06-17 17:49:17.955 ** ERROR ** [V8.5.0] cause = Array and string offset access syntax with curly braces is deprecated
2020-06-17 17:52:10.736 ** ERROR ** [V8.5.0] ERROR **
2020-06-17 17:52:10.740 ** ERROR ** [V8.5.0] on file '/srv/http/projeqtor/model/ImputationLine.php' at line (1037)
2020-06-17 17:52:10.741 ** ERROR ***** [V8.5.0] cause = Array and string offset access syntax with curly braces is deprecated
regards.
Hi,
Fix is to replace line 1037 in model/ImputationLine.php from
echo ' style="width: 45px; text-align: center;'.$colorStyle.';'.(($manuPlan and isset($line->arrayPlannedWork{$i}->work) and $line->arrayPlannedWork{$i}->work!="")?"color:#8080DD;font-style:italic":"color:black;ont-style:normal").';" ';
to
echo ' style="width: 45px; text-align: center;'.$colorStyle.';'.(($manuPlan and isset($line->arrayPlannedWork[$i]->work) and $line->arrayPlannedWork[$i]->work!="")?"color:#8080DD;font-style:italic":"color:black;ont-style:normal").';" ';