From 74f23a0c8062a2df938c0e98f285e1c8202f2480 Mon Sep 17 00:00:00 2001 From: hahn <axel.hahn@iml.unibe.ch> Date: Wed, 10 Aug 2022 16:42:52 +0200 Subject: [PATCH] fix progress detection --- public_html/deployment/classes/project.class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/public_html/deployment/classes/project.class.php b/public_html/deployment/classes/project.class.php index 9a81726d..3ce06797 100644 --- a/public_html/deployment/classes/project.class.php +++ b/public_html/deployment/classes/project.class.php @@ -914,14 +914,13 @@ class project extends base { foreach (array_keys($this->getPlaces()) as $sPlace) { if ( $sPlace!=='onhold' - && array_key_exists($sPlace, $aDataPhase) - // && array_key_exists('version', $aDataPhase[$sPlace]) + && isset($aDataPhase[$sPlace]['version']) ) { - if($bFirstVersion && isset($aDataPhase[$sPlace]['version']) && !$bHasDifferentVersions && $bFirstVersion!==$aDataPhase[$sPlace]['version']){ + if($bFirstVersion && !$bHasDifferentVersions && $bFirstVersion!==$aDataPhase[$sPlace]['version']){ $bHasDifferentVersions=true; } if (!$bFirstVersion){ - $bFirstVersion = isset($aDataPhase[$sPlace]['version']) ? $aDataPhase[$sPlace]['version'] : $bFirstVersion; + $bFirstVersion = $aDataPhase[$sPlace]['version']; } } } -- GitLab