Commit 136bdb8d2779359647ea88b63e4c7222d6d0af6c

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

Статус избранные

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

app/Http/Controllers/EmployerController.php
... ... @@ -461,7 +461,7 @@ class EmployerController extends Controller
461 461  
462 462 $Workers = Worker::query()->whereIn('id', $A);
463 463 } else {
464   - $Workers = Worker::query();
  464 + $Workers = Worker::query()->where('id', '=', '0');
465 465 }
466 466  
467 467 if (($request->has('search')) && (!empty($request->get('search')))) {
app/Http/Controllers/WorkerController.php
... ... @@ -526,7 +526,7 @@ class WorkerController extends Controller
526 526  
527 527 $Query = Ad_employer::query()->whereIn('id', $A);
528 528 } else {
529   - $Query = Ad_employer::query();
  529 + $Query = Ad_employer::query()->where('id', '=', '0');
530 530 }
531 531  
532 532 $Query = $Query->with('jobs')->