mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-31 07:30:46 -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->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');
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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');
|
||||||
});
|
});
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue