mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Add comment
This commit is contained in:
parent
c3a71cc182
commit
a4e959818a
|
@ -142,6 +142,8 @@ class Label implements View
|
||||||
// Remove Duplicates
|
// Remove Duplicates
|
||||||
$toAdd = $field
|
$toAdd = $field
|
||||||
->filter(fn($o) => !$myFields->contains('dataSource', $o['dataSource']))
|
->filter(fn($o) => !$myFields->contains('dataSource', $o['dataSource']))
|
||||||
|
// For fields that have multiple options, we need to combine them
|
||||||
|
// into a single field so all values are displayed.
|
||||||
->reduce(function ($previous, $current) {
|
->reduce(function ($previous, $current) {
|
||||||
// On the first iteration we simply return the item.
|
// On the first iteration we simply return the item.
|
||||||
// If there is only one item to be processed for the row
|
// If there is only one item to be processed for the row
|
||||||
|
|
Loading…
Reference in a new issue