mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Returns null for order number if it’s blank
This commit is contained in:
parent
1076ec96be
commit
0fd0e3a8b4
|
@ -49,7 +49,7 @@ class AssetsTransformer
|
||||||
'name'=> e($asset->supplier->name)
|
'name'=> e($asset->supplier->name)
|
||||||
] : null,
|
] : null,
|
||||||
'notes' => ($asset->notes) ? e($asset->notes) : null,
|
'notes' => ($asset->notes) ? e($asset->notes) : null,
|
||||||
'order_number' => e($asset->order_number),
|
'order_number' => ($asset->order_number) ? e($asset->order_number) : null,
|
||||||
'company' => ($asset->company) ? [
|
'company' => ($asset->company) ? [
|
||||||
'id' => (int) $asset->company->id,
|
'id' => (int) $asset->company->id,
|
||||||
'name'=> e($asset->company->name)
|
'name'=> e($asset->company->name)
|
||||||
|
|
Loading…
Reference in a new issue