mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Merge pull request #12537 from inietov/fixes/expected_checkin_date_validation
Fixed #12531 Expected Checkin Date on Asset Checkout throws an error
This commit is contained in:
commit
5a1e5f740d
|
@ -186,6 +186,14 @@ class Asset extends Depreciable
|
||||||
'model.manufacturer' => ['name'],
|
'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
|
* This handles the custom field validation for assets
|
||||||
|
|
Loading…
Reference in a new issue