Merge pull request #1875 from amitsharma322/gli-3220
Fixed: fatal error when generating a voucher with zero amount and prevent credit slip generation with zero amount in the back office
This commit is contained in:
@@ -121,7 +121,7 @@ class HTMLTemplateOrderSlipCore extends HTMLTemplateInvoice
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$this->order->products = null;
|
||||
$this->order->products = array();
|
||||
}
|
||||
|
||||
unset($product); // remove reference
|
||||
|
||||
Reference in New Issue
Block a user