Fixed [ch15130] - update the seeder to clear requested assets table
This commit is contained in:
parent
251ef82741
commit
82e0b1ffd8
2 changed files with 3 additions and 1 deletions
|
@ -49,6 +49,8 @@ class DatabaseSeeder extends Seeder
|
||||||
|
|
||||||
DB::table('imports')->truncate();
|
DB::table('imports')->truncate();
|
||||||
DB::table('asset_maintenances')->truncate();
|
DB::table('asset_maintenances')->truncate();
|
||||||
|
DB::table('requested_assets')->truncate();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ Accept assets {{ $user->present()->fullName() }}
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach ($acceptances as $acceptance)
|
@foreach ($acceptances as $acceptance)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $acceptance->checkoutable->present()->name }}</td>
|
<td>{{ ($acceptance->checkoutable) ? $acceptance->checkoutable->present()->name : '' }}</td>
|
||||||
<td><a href="{{ route('account.accept.item', $acceptance) }}" class="btn btn-default btn-sm">Accept/Decline</a></td>
|
<td><a href="{{ route('account.accept.item', $acceptance) }}" class="btn btn-default btn-sm">Accept/Decline</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
Loading…
Add table
Reference in a new issue