Fixed batteries stock overview page was broken when having any Userfield (fixes #1786)

This commit is contained in:
Bernd Bestel 2022-02-14 17:52:24 +01:00
parent c5b47badad
commit 21d5952950
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 7 additions and 1 deletions

View File

@ -36,7 +36,7 @@
### Batteries
- xxx
- Fixed that the batteries overview page was broken when there was any battery Userfields with enabled "Show as column in tables" option
### Equipment

View File

@ -194,6 +194,12 @@
@if($currentBatteryEntry->due_type == 'duetoday')
duesoon
@endif
</td>
@include('components.userfields_tbody',
array( 'userfields'=> $userfields,
'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $currentBatteryEntry->battery_id)
))
</tr>
@endforeach