Fixed showing orders with not required termination

This commit is contained in:
Frank Schubert
2021-10-12 20:24:18 +02:00
parent fa622a72e9
commit 19e6ee69b0

View File

@@ -131,7 +131,7 @@ class OrderController extends mfBaseController {
$attribs = $p->product->attributes;
if(is_array($attribs) && count($attribs)
&& array_key_exists(TT_ATTRIB_TERMINATION_REQUIRED_NAME, $attribs)
&& $$attribs[TT_ATTRIB_TERMINATION_REQUIRED_NAME]->value == 0) {
&& $attribs[TT_ATTRIB_TERMINATION_REQUIRED_NAME]->value == 0) {
$this->log->debug("found additional order where termination_required 0");
$lonelyOrders[$order->id] = $order;
break;