From d25c90959adccde09e470fbc4ebf80cce46e7a8a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 2 Apr 2024 21:40:48 +0000 Subject: [PATCH] template fixes + bug fixes + style fixes --- Controller/ApiController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 77f1a97..e24d066 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -87,7 +87,7 @@ final class ApiController extends Controller ->where('client/account', $request->header->account) ->where('status', BillStatus::ARCHIVED) ->where('elements/item', $request->getDataInt('item')) - ->execute(); + ->executeGetArray(); $items = []; foreach ($bills as $bill) { @@ -249,7 +249,7 @@ final class ApiController extends Controller } if (!empty($attr = $item->getAttribute('accessoryfor')->value->getValue())) { - $schema['isAccessoryOrSparePartFor'] = []; + $schema['isAccessoryOrSparePartFor'] = []; $schema['isAccessoryOrSparePartFor'][] = [ '@type' => 'Product', 'identifier' => $attr,