Skip to content

Commit 21f7220

Browse files
author
Joan He
committed
Merge remote-tracking branch 'upstream/2.2-develop' into 2.2-develop-pr
2 parents a662901 + 364645d commit 21f7220

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)