From a6ffb2597286975ff3eb7d982a096f91ca347ee3 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 9 Mar 2017 10:03:24 -0500 Subject: [PATCH] Fix wrong bugfix in 1996736626 preventing time to be registered for considered_working_time --- main/work/work.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/work/work.lib.php b/main/work/work.lib.php index 34b66e6bbf..5c02a81158 100755 --- a/main/work/work.lib.php +++ b/main/work/work.lib.php @@ -3814,11 +3814,11 @@ function processWorkForm( // connection to the platform to hand the work in. $consideredWorkingTime = api_get_configuration_value('considered_working_time'); - if ($consideredWorkingTime) { + if (!empty($consideredWorkingTime)) { // Get the "considered work time" defined for this work $fieldValue = new ExtraFieldValue('work'); $resultExtra = $fieldValue->getAllValuesForAnItem( - $workId, + $workInfo['iid'], //the ID of the work *folder*, not the document uploaded by the student true );