Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Feb 23, 2023
2 parents 225b6ef + 4a9ced1 commit adb166f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions app/Models/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,14 @@ public function declinedCheckout(User $declinedBy, $signature)
'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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit adb166f

Please sign in to comment.