Merge remote-tracking branch 'origin/develop'

This commit is contained in:
snipe 2024-11-19 13:32:02 +00:00
commit 4384f8dcbb
4 changed files with 8 additions and 8 deletions

View file

@ -323,7 +323,7 @@ class BulkUsersController extends Controller
$logAction->item_type = $itemType; $logAction->item_type = $itemType;
$logAction->target_id = $item->assigned_to; $logAction->target_id = $item->assigned_to;
$logAction->target_type = User::class; $logAction->target_type = User::class;
$logAction->created_at = auth()->id(); $logAction->created_by = auth()->id();
$logAction->note = 'Bulk checkin items'; $logAction->note = 'Bulk checkin items';
$logAction->logaction('checkin from'); $logAction->logaction('checkin from');
} }

View file

@ -26,7 +26,7 @@ class ChangeWebhookSettingsVariableType extends Migration
public function down() public function down()
{ {
Schema::table('settings', function (Blueprint $table) { Schema::table('settings', function (Blueprint $table) {
$table->varchar('webhook_endpoint')->change(); $table->string('webhook_endpoint')->change();
}); });
} }

View file

@ -42,7 +42,7 @@ return new class extends Migration
} }
foreach ($this->existing_table_list() as $table) { foreach ($this->existing_table_list() as $table) {
if (Schema::hasColumn($table, 'user_id')) { if (Schema::hasColumn($table, 'created_by')) {
Schema::table($table, function (Blueprint $table) { Schema::table($table, function (Blueprint $table) {
$table->renameColumn('created_by', 'user_id'); $table->renameColumn('created_by', 'user_id');
}); });

View file

@ -43,14 +43,14 @@
<td>{{ $asset->present()->name() }}</td> <td>{{ $asset->present()->name() }}</td>
<td> <td>
@if ($asset->location) @if ($asset->location)
{{ $asset->location->name }} {{ $asset->location->present()->name() }}
@elseif($asset->rtd_location)
{{ $asset->defaultLoc->present()->name() }}
@endif @endif
</td> </td>
<td> <td>
@if ($asset->assigned_to)
{{ $asset->assigned_to }} {{ $asset->assigned->present()->name() }}
@if ($asset->assignedTo)
{{ $asset->assignedTo->present()->name()}}
@endif @endif
</td> </td>
</tr> </tr>