wesmiler il y a 1 semaine
Parent
commit
3974d1c5c9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/Services/Exam/SubjectService.php

+ 1 - 1
app/Services/Exam/SubjectService.php

@@ -77,7 +77,7 @@ class SubjectService extends BaseService
     public function edit()
     public function edit()
     {
     {
         $data = request()->all();
         $data = request()->all();
-        $data = isset($data['description'])?$data['description']:'';
+        $data = isset($data['description'])&&$data['description']?$data['description']:'';
         return parent::edit($data); // TODO: Change the autogenerated stub
         return parent::edit($data); // TODO: Change the autogenerated stub
     }
     }