cqp пре 3 месеци
родитељ
комит
884d74595c
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      app/Service/EmployeeService.php

+ 2 - 2
app/Service/EmployeeService.php

@@ -61,7 +61,7 @@ class EmployeeService extends Service
             $model->number = $data['number'];
             $model->title = $data['title'];
             $model->mobile = $data['mobile'];
-            $model->sex = $data['sex'];
+            $model->sex = $data['sex'] ?? 0;
             $model->education = $data['education'] ?? "";
             $model->id_card = $data['id_card'];
             $model->major = $data['major'] ?? "";
@@ -122,7 +122,7 @@ class EmployeeService extends Service
             $model->number = $data['number'];
             $model->title = $data['title'];
             $model->mobile = $data['mobile'];
-            $model->sex = $data['sex'];
+            $model->sex = $data['sex'] ?? 0;
             $model->education = $data['education'] ?? "";
             $model->id_card = $data['id_card'];
             $model->major = $data['major'] ?? "";