mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
FIX: #10898 (invalid consumable date time info in user view)
This commit is contained in:
parent
d55c176199
commit
231a34ace3
|
@ -308,7 +308,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
|
||||||
*/
|
*/
|
||||||
public function consumables()
|
public function consumables()
|
||||||
{
|
{
|
||||||
return $this->belongsToMany(\App\Models\Consumable::class, 'consumables_users', 'assigned_to', 'consumable_id')->withPivot('id')->withTrashed();
|
return $this->belongsToMany(\App\Models\Consumable::class, 'consumables_users', 'assigned_to', 'consumable_id')->withPivot('id','created_at')->withTrashed();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -738,7 +738,7 @@
|
||||||
<td>
|
<td>
|
||||||
{!! Helper::formatCurrencyOutput($consumable->purchase_cost) !!}
|
{!! Helper::formatCurrencyOutput($consumable->purchase_cost) !!}
|
||||||
</td>
|
</td>
|
||||||
<td>{{ $consumable->created_at }}</td>
|
<td>{{ $consumable->pivot->created_at }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in a new issue