Render product Userfields also on the shopping list (this now closes #258)

This commit is contained in:
Bernd Bestel
2019-09-17 19:39:55 +02:00
parent 0fa0138972
commit 9b5f3ba7b8
3 changed files with 15 additions and 1 deletions

View File

@@ -77,7 +77,9 @@ class StockController extends BaseController
'missingProducts' => $this->StockService->GetMissingProducts(),
'productGroups' => $this->Database->product_groups()->orderBy('name'),
'shoppingLists' => $this->Database->shopping_lists()->orderBy('name'),
'selectedShoppingListId' => $listId
'selectedShoppingListId' => $listId,
'userfields' => $this->UserfieldsService->GetFields('products'),
'userfieldValues' => $this->UserfieldsService->GetAllValues('products')
]);
}