mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
added filter to collectifunction
This commit is contained in:
parent
bee016e0be
commit
14c86d447b
|
@ -69,6 +69,7 @@ class LabelsController extends Controller
|
||||||
$customFieldColumns = CustomField::all()->pluck('db_column');
|
$customFieldColumns = CustomField::all()->pluck('db_column');
|
||||||
|
|
||||||
collect(explode(';', Setting::getSettings()->label2_fields))
|
collect(explode(';', Setting::getSettings()->label2_fields))
|
||||||
|
->filter()
|
||||||
->each(function ($item) use ($customFieldColumns, $exampleAsset) {
|
->each(function ($item) use ($customFieldColumns, $exampleAsset) {
|
||||||
$pair = explode('=', $item);
|
$pair = explode('=', $item);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue