Commit d467eae70bc2f30cb190f3ba4b154fa6c8568ec5

Authored by Сергей П
1 parent 73209e6cb1
Exists in master

Изменения для раздела "База данных" в личном кабинете

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

app/Http/Controllers/EmployerController.php
... ... @@ -618,7 +618,7 @@ class EmployerController extends Controller
618 618  
619 619 // Данные
620 620 $users = $users->Baseuser()->
621   - orderBy(Worker::select('position_work')->whereColumn('Workers.user_id', 'users.id'));
  621 + orderBy(Worker::select('position_work')->whereColumn('workers.user_id', 'users.id'));
622 622 $count_users = $users;
623 623 $users = $users->paginate(5);
624 624  
app/Http/Controllers/WorkerController.php
... ... @@ -111,12 +111,12 @@ class WorkerController extends Controller
111 111 switch ($sort) {
112 112 case 'name_up':
113 113 $resumes = $resumes->orderBy(User::select('surname')
114   - ->whereColumn('Workers.user_id', 'users.id')
  114 + ->whereColumn('workers.user_id', 'users.id')
115 115 );
116 116 break;
117 117 case 'name_down':
118 118 $resumes = $resumes->orderByDesc(User::select('surname')
119   - ->whereColumn('Workers.user_id', 'users.id')
  119 + ->whereColumn('workers.user_id', 'users.id')
120 120 );
121 121 break;
122 122 case 'created_at_up':