Skip to content

Commit c132b2b

Browse files
author
Viktor Tymchynskyi
committed
Merge remote-tracking branch 'origin/MAGETWO-44496' into MPI-BUGFIXES
2 parents 4499554 + 6211bbc commit c132b2b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

app/code/Magento/Paypal/Observer/AddBillingAgreementToSessionObserver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public function execute(EventObserver $observer)
5353
if ($agreement->isValid()) {
5454
$message = __('Created billing agreement #%1.', $agreement->getReferenceId());
5555
$order->addRelatedObject($agreement);
56+
$agreement->addOrderRelation($order);
5657
$this->checkoutSession->setLastBillingAgreementReferenceId($agreement->getReferenceId());
5758
$agreementCreated = true;
5859
} else {

app/code/Magento/Paypal/Test/Unit/Observer/AddBillingAgreementToSessionObserverTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ public function testAddBillingAgreementToSession($isValid)
122122
)->will(
123123
$this->returnValue('agreement reference id')
124124
);
125+
$agreement->expects($this->once())->method('addOrderRelation')->with($order);
125126
$order->expects(new MethodInvokedAtIndex(0))->method('addRelatedObject')->with($agreement);
126127
$this->_checkoutSession->expects(
127128
$this->once()

app/code/Magento/Paypal/view/frontend/templates/billing/agreement/view.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ $relatedOrders = $block->getRelatedOrders();
105105
)); ?>
106106
</td>
107107
<td data-th="<?php echo $block->escapeHtml(__('Order Total')); ?>" class="col total">
108-
<?php echo $block->escapeHtml($block->getOrderItemValue($order, 'order_total')); ?>
108+
<?php /* @noEscape */ echo $block->getOrderItemValue($order, 'order_total'); ?>
109109
</td>
110110
<td data-th="<?php echo $block->escapeHtml(__('Order Status')); ?>" class="col status">
111111
<?php echo $block->escapeHtml($block->getOrderItemValue(

0 commit comments

Comments
 (0)