Commit 7180c5059e2dfaa543a10df865beba51616fdd7a

Authored by Андрей Ларионов
Exists in master

Обновление 5

Showing 1 changed file Side-by-side Diff

app/Http/Controllers/EmployerController.php
... ... @@ -115,8 +115,8 @@ class EmployerController extends Controller
115 115 public function cabinet_vacancie() {
116 116 $id = Auth()->user()->id;
117 117  
118   - $categories = Category::query()->get();
119   - $Positions = Positions::query()->get();
  118 + $categories = Category::query()->active()->get();
  119 + $Positions = Category::query()->active()->get();
120 120 if ($Positions->count()) {
121 121 $jobs = Job_title::query()->OrderBy('name')->where('position_id', $Positions[0]->id)->get();
122 122 } else {
... ... @@ -171,7 +171,7 @@ class EmployerController extends Controller
171 171 public function vacancy_edit(Ad_employer $ad_employer) {
172 172 $id = Auth()->user()->id;
173 173  
174   - $Positions = Positions::query()->get();
  174 + $Positions = Category::query()->active()->get();
175 175 if ($Positions->count()) {
176 176 $jobs = Job_title::query()->OrderBy('name')->where('position_id', $Positions[0]->id)->get();
177 177 } else {