Commit 2c676e6ce07ba89d56a629f147f45d480ed6d099

Authored by Андрей Ларионов
1 parent 52cd6fac15

Обновление 6

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

app/Http/Controllers/Ad_jobsController.php
... ... @@ -43,7 +43,7 @@ class Ad_jobsController extends Controller
43 43 public function add_job_in_vac(Request $request, Ad_employer $ad_employer) {
44 44 $id = Auth()->user()->id;
45 45  
46   - $Positions = Category::query()->get();
  46 + $Positions = Category::query()->active()->get();
47 47 if ($Positions->count()) {
48 48 $jobs = Job_title::query()->OrderBy('name')->where('position_id', $Positions[0]->id)->get();
49 49 } else {
... ... @@ -72,7 +72,7 @@ class Ad_jobsController extends Controller
72 72 else
73 73 $job_title_id = '';
74 74  
75   - $Positions = Category::query()->get();
  75 + $Positions = Category::query()->active()->get();
76 76 if ($Positions->count()) {
77 77 $jobs123 = Job_title::query()->OrderBy('name')->where('position_id', $ad_job->job_title->position_id )->get();
78 78 } else {