Skip to content

Commit

Permalink
Fixed more bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Crampton committed Aug 24, 2018
1 parent 4614a6b commit 2e800be
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/ProviderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function batchUpdate(Request $request, User $user, Provider $provider)
$deleteArray = $this->buildDeleteArray($request, 'provider');

// Check for any items tagged for restoration. If found, add to array for batch restore.
$deleteArray = $this->buildRestoreArray($request, 'provider');
$restoreArray = $this->buildRestoreArray($request, 'provider');

// Determine which fields have changed, and prepare array for batch update.
$updateArray = $this->buildUpdateArray($request, 'provider', ['provider_name', 'provider_email']);
Expand Down
3 changes: 2 additions & 1 deletion app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public function indexRestore(User $user)
return view('admin.user_restore', [
'config' => $this->configData,
'adminSections' => $this->adminSections,
'userList' => $this->deletedUserList
'userList' => $this->deletedUserList,
'permissionList' => $this->permissionList
]);
}

Expand Down
2 changes: 1 addition & 1 deletion resources/views/admin/provider_restore.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<tr>
<th scope="col">Name</th>
<th scope="col">Email</th>
<th scope="col" class="text-center">Delete</th>
<th scope="col" class="text-center">Restore</th>
</tr>
</thead>
@foreach($providerList as $index => $provider)
Expand Down
2 changes: 1 addition & 1 deletion resources/views/admin/staff_member_restore.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Email</th>
<th scope="col" class="text-center">Delete</th>
<th scope="col" class="text-center">Restore</th>
</tr>
</thead>
@foreach($staffList as $index => $staff)
Expand Down
2 changes: 1 addition & 1 deletion resources/views/admin/user.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<th scope="col">Last Name</th>
<th scope="col">Email</th>
<th scope="col">Permission Level</th>
<th scope="col" class="text-center">Delete</th>
<th scope="col" class="text-center">Restore</th>
</tr>
</thead>
@foreach($userList as $index => $user)
Expand Down
2 changes: 1 addition & 1 deletion resources/views/admin/user_restore.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<th scope="col">Last Name</th>
<th scope="col">Email</th>
<th scope="col">Permission Level</th>
<th scope="col" class="text-center">Delete</th>
<th scope="col" class="text-center">Restore</th>
</tr>
</thead>
@foreach($userList as $index => $user)
Expand Down

0 comments on commit 2e800be

Please sign in to comment.