From bc71e803a9dbd22d5e930328ce91cc33a9dbd485 Mon Sep 17 00:00:00 2001 From: anazaryan Date: Fri, 13 Dec 2024 19:13:27 +0400 Subject: [PATCH] fix worker register error --- app/Http/Controllers/WorkerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/WorkerController.php b/app/Http/Controllers/WorkerController.php index b4f7baf..e64f858 100644 --- a/app/Http/Controllers/WorkerController.php +++ b/app/Http/Controllers/WorkerController.php @@ -716,7 +716,7 @@ class WorkerController extends Controller if (isset($Worker->id) && !empty($data['job_titles'])) { $existJob = Job_title::query()->find($data['job_titles']); - if (!$existJob) { + if ($existJob) { $Title_Worker = new Title_worker(); $Title_Worker->worker_id = $Worker->id; $Title_Worker->job_title_id = $data['job_titles']; -- 1.7.10.4