Merge remote-tracking branch 'origin/develop'

This commit is contained in:
snipe 2023-02-22 18:01:06 -08:00
commit adb166fb8d
2 changed files with 9 additions and 1 deletions

View file

@ -186,6 +186,14 @@ class Asset extends Depreciable
'model.manufacturer' => ['name'],
];
// To properly set the expected checkin as Y-m-d
public function setExpectedCheckinAttribute($value)
{
if ($value == '') {
$value = null;
}
$this->attributes['expected_checkin'] = $value;
}
/**
* This handles the custom field validation for assets

View file

@ -47,7 +47,7 @@
## {{ $licenses->count() }} {{ trans('general.licenses') }}
<table width="100%">
<tr><th align="left"{{ trans('mail.name') }} </th></tr>
<tr><th align="left">{{ trans('mail.name') }} </th></tr>
@foreach($licenses as $license)
<tr>
<td>{{ $license->name }}</td>