Browse Source

Fix wrong bugfix in 1996736626 preventing time to be registered for considered_working_time

Yannick Warnier 8 years ago
parent
commit
a38eb049ca
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/work/work.lib.php

+ 2 - 2
main/work/work.lib.php

@@ -3828,11 +3828,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
                 );