Skip to content

Commit 364645d

Browse files
🔃 [Magento Community Engineering] Community Contributions - 2.2-develop
Accepted Community Pull Requests: - #23119: [Backport] #22686 Shipment view fixed for Fatal error. (by @milindsingh) - #23114: [Backport] Show exception message during SCD failure (by @ihor-sviziev) Fixed GitHub Issues: - #22686: Shipment Create via API salesShipmentRepositoryV1 throw Fatal error in Admin Order -> Shipment -> View (reported by @milindsingh) has been fixed in #23119 by @milindsingh in 2.2-develop branch Related commits: 1. 044befa - #22882: Static content deploy - Don't shows error message, just stack trace (reported by @ihor-sviziev) has been fixed in #23114 by @ihor-sviziev in 2.2-develop branch Related commits: 1. 38b8333
2 parents 1442959 + 68b30cf commit 364645d

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

app/code/Magento/Deploy/Service/DeployPackage.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ function () use ($package, $options, $skipLogging) {
112112
}
113113

114114
/**
115+
* Execute package deploy procedure when area already emulated
116+
*
115117
* @param Package $package
116118
* @param array $options
117119
* @param bool $skipLogging
@@ -141,7 +143,9 @@ public function deployEmulated(Package $package, array $options, $skipLogging =
141143
$this->errorsCount++;
142144
$this->logger->critical($errorMessage);
143145
} catch (\Exception $exception) {
144-
$this->logger->critical($exception->getTraceAsString());
146+
$this->logger->critical(
147+
'Compilation from source ' . $file->getSourcePath() . ' failed' . PHP_EOL . (string)$exception
148+
);
145149
$this->errorsCount++;
146150
}
147151
}
@@ -224,7 +228,9 @@ private function checkIfCanCopy(PackageFile $file, Package $package, Package $pa
224228
private function checkFileSkip($filePath, array $options)
225229
{
226230
if ($filePath !== '.') {
231+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
227232
$ext = strtolower(pathinfo($filePath, PATHINFO_EXTENSION));
233+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
228234
$basename = pathinfo($filePath, PATHINFO_BASENAME);
229235
if ($ext === 'less' && strpos($basename, '_') === 0) {
230236
return true;

app/code/Magento/Shipping/view/adminhtml/templates/view/items.phtml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@
1414
</thead>
1515
<?php $_items = $block->getShipment()->getAllItems() ?>
1616
<?php $_i = 0; foreach ($_items as $_item) :
17-
if ($_item->getOrderItem()->getParentItem()) :
18-
continue;
19-
endif;
20-
$_i++ ?>
21-
<tbody class="<?= /* @noEscape */ $_i%2 ? 'odd' : 'even' ?>">
22-
<?= $block->getItemHtml($_item) ?>
23-
<?= $block->getItemExtraInfoHtml($_item->getOrderItem()) ?>
24-
</tbody>
17+
if (!empty($_item->getOrderItem())) :
18+
if ($_item->getOrderItem()->getParentItem()) :
19+
continue;
20+
endif;
21+
$_i++ ?>
22+
<tbody class="<?= /* @noEscape */ $_i%2 ? 'odd' : 'even' ?>">
23+
<?= $block->getItemHtml($_item) ?>
24+
<?= $block->getItemExtraInfoHtml($_item->getOrderItem()) ?>
25+
</tbody>
26+
<?php endif; ?>
2527
<?php endforeach; ?>
2628
</table>
2729
</div>

0 commit comments

Comments
 (0)