lgy пре 3 недеља
родитељ
комит
27a5ad3364
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      server/application/api/servies/butt/ButtService.php

+ 4 - 1
server/application/api/servies/butt/ButtService.php

@@ -2275,7 +2275,10 @@ class ButtService extends ZskkDefaultService {
         if(!empty($report))
         {
             $this->butt->updateReport(['exam_id'=>$id],['id'=>$report['id']]);
-            $this->butt->updateExam(['exam_status'=>9],$id);
+            if(!empty($report['impression']) || !empty($report['description']))
+            {
+                $this->butt->updateExam(['exam_status'=>9],$id);
+            }
         }
         return $id;
     }