Fixed that the stock entries page was broken when there were product userfields defined with enabled "Show as column in tables" (fixes #677)

This commit is contained in:
Bernd Bestel
2020-04-12 14:13:28 +02:00
parent 4e5e191b22
commit 390af436ab
3 changed files with 7 additions and 3 deletions

View File

@@ -158,6 +158,12 @@
<span id="stock-{{ $stockEntry->id }}-purchased-date">{{ $stockEntry->purchased_date }}</span>
<time id="stock-{{ $stockEntry->id }}-purchased-date-timeago" class="timeago timeago-contextual" datetime="{{ $stockEntry->purchased_date }} 23:59:59"></time>
</td>
@include('components.userfields_tbody', array(
'userfields' => $userfields,
'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $stockEntry->product_id)
))
</tr>
@endforeach
</tbody>