Skip to content

Commit 170d029

Browse files
Madhumalakjignesh-baldha
authored andcommitted
2.2.6-dev-6305 fixed issue on displaying option title in invoice and shipment pdf
1 parent 71ce3fa commit 170d029

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/Sales/Model/Order/Pdf/Items/Invoice/DefaultInvoice.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ public function draw()
127127
'feed' => 35,
128128
];
129129

130-
if ($option['value']) {
130+
// Checking if option value is null not as empty
131+
if ($option['value']!= null) {
131132
if (isset($option['print_value'])) {
132133
$printValue = $option['print_value'];
133134
} else {

app/code/Magento/Sales/Model/Order/Pdf/Items/Shipment/DefaultShipment.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ public function draw()
8989
];
9090

9191
// draw options value
92-
if ($option['value']) {
92+
// Checking if option value is null not as empty
93+
if ($option['value']!= null) {
9394
$printValue = isset(
9495
$option['print_value']
9596
) ? $option['print_value'] : $this->filterManager->stripTags(

0 commit comments

Comments
 (0)