Skip to content

Commit 4384f8d

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 53cfcb7 + d576016 commit 4384f8d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

app/Http/Controllers/Users/BulkUsersController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ protected function logItemCheckinAndDelete($items, $itemType)
323323
$logAction->item_type = $itemType;
324324
$logAction->target_id = $item->assigned_to;
325325
$logAction->target_type = User::class;
326-
$logAction->created_at = auth()->id();
326+
$logAction->created_by = auth()->id();
327327
$logAction->note = 'Bulk checkin items';
328328
$logAction->logaction('checkin from');
329329
}

database/migrations/2023_08_01_174150_change_webhook_settings_variable_type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function up()
2626
public function down()
2727
{
2828
Schema::table('settings', function (Blueprint $table) {
29-
$table->varchar('webhook_endpoint')->change();
29+
$table->string('webhook_endpoint')->change();
3030
});
3131

3232
}

database/migrations/2024_09_17_204302_change_user_id_to_created_by.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function down(): void
4242
}
4343

4444
foreach ($this->existing_table_list() as $table) {
45-
if (Schema::hasColumn($table, 'user_id')) {
45+
if (Schema::hasColumn($table, 'created_by')) {
4646
Schema::table($table, function (Blueprint $table) {
4747
$table->renameColumn('created_by', 'user_id');
4848
});

resources/views/hardware/bulk-delete.blade.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@
4343
<td>{{ $asset->present()->name() }}</td>
4444
<td>
4545
@if ($asset->location)
46-
{{ $asset->location->name }}
46+
{{ $asset->location->present()->name() }}
47+
@elseif($asset->rtd_location)
48+
{{ $asset->defaultLoc->present()->name() }}
4749
@endif
4850
</td>
4951
<td>
50-
51-
{{ $asset->assigned_to }}
52-
@if ($asset->assignedTo)
53-
{{ $asset->assignedTo->present()->name()}}
52+
@if ($asset->assigned_to)
53+
{{ $asset->assigned->present()->name() }}
5454
@endif
5555
</td>
5656
</tr>

0 commit comments

Comments
 (0)