mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-19 09:41:30 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
4384f8dcbb
|
@ -323,7 +323,7 @@ class BulkUsersController extends Controller
|
|||
$logAction->item_type = $itemType;
|
||||
$logAction->target_id = $item->assigned_to;
|
||||
$logAction->target_type = User::class;
|
||||
$logAction->created_at = auth()->id();
|
||||
$logAction->created_by = auth()->id();
|
||||
$logAction->note = 'Bulk checkin items';
|
||||
$logAction->logaction('checkin from');
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ class ChangeWebhookSettingsVariableType extends Migration
|
|||
public function down()
|
||||
{
|
||||
Schema::table('settings', function (Blueprint $table) {
|
||||
$table->varchar('webhook_endpoint')->change();
|
||||
$table->string('webhook_endpoint')->change();
|
||||
});
|
||||
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ return new class extends Migration
|
|||
}
|
||||
|
||||
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) {
|
||||
$table->renameColumn('created_by', 'user_id');
|
||||
});
|
||||
|
|
|
@ -43,14 +43,14 @@
|
|||
<td>{{ $asset->present()->name() }}</td>
|
||||
<td>
|
||||
@if ($asset->location)
|
||||
{{ $asset->location->name }}
|
||||
{{ $asset->location->present()->name() }}
|
||||
@elseif($asset->rtd_location)
|
||||
{{ $asset->defaultLoc->present()->name() }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
|
||||
{{ $asset->assigned_to }}
|
||||
@if ($asset->assignedTo)
|
||||
{{ $asset->assignedTo->present()->name()}}
|
||||
@if ($asset->assigned_to)
|
||||
{{ $asset->assigned->present()->name() }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in a new issue