Fix item descriptions

This commit is contained in:
Benjamin Yule Bädorf 2024-04-06 02:49:31 +02:00
parent 71d01e2f53
commit 03669bc7cf
Signed by untrusted user: b12f
GPG key ID: 729956E1124F8F26

View file

@ -3,7 +3,7 @@
<head>
<?php
$anyItemHasDescription = array_reduce($items, function ($acc, $item) {
return $acc || $item->description != '';
return $acc || $item->item_description != '';
}, false);
$colspan = 3 + ($show_item_discounts ? 1 : 0) + ($anyItemHasDescription ? 1 : 0);