mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
Merge remote-tracking branch 'origin/develop'
Signed-off-by: snipe <snipe@snipe.net> # Conflicts: # config/version.php
This commit is contained in:
commit
b448c89655
|
@ -117,9 +117,10 @@ class AssetsTransformer
|
||||||
} else {
|
} else {
|
||||||
$value = $asset->{$field->convertUnicodeDbSlug()};
|
$value = $asset->{$field->convertUnicodeDbSlug()};
|
||||||
|
|
||||||
if ($field->format == 'DATE'){
|
if ($field->format == 'DATE' && !is_null($value)){
|
||||||
$value = Helper::getFormattedDateObject($value)['formatted'];
|
$value = Helper::getFormattedDateObject($value)['formatted'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$fields_array[$field->name] = [
|
$fields_array[$field->name] = [
|
||||||
'field' => e($field->convertUnicodeDbSlug()),
|
'field' => e($field->convertUnicodeDbSlug()),
|
||||||
'value' => e($value),
|
'value' => e($value),
|
||||||
|
|
Loading…
Reference in a new issue