Skip to content

Commit

Permalink
MAGETWO-41590: PR Preparation and processing
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko committed Aug 28, 2015
1 parent d1726d1 commit 5acea4a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public function testPrepareItemsByPageId()
'href' => 'test/url/delete',
'label' => __('Delete'),
'confirm' => [
'title' => __('Delete "${ $.$data.title }"'),
'message' => __('Are you sure you wan\'t to delete a "${ $.$data.title }" record?')
'title' => __('Delete ${ $.$data.title }'),
'message' => __('Are you sure you wan\'t to delete a ${ $.$data.title } record?')
],
]
],
Expand Down
10 changes: 6 additions & 4 deletions app/code/Magento/Sales/Block/Adminhtml/Transactions/Detail.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@ protected function _construct()
['label' => __('Back'), 'onclick' => "setLocation('{$backUrl}')", 'class' => 'back']
);

if ($this->_authorization->isAllowed(
'Magento_Sales::transactions_fetch'
) && $this->orderPaymentRepository->get($this->_txn->getPaymentId())->getMethodInstance()->canFetchTransactionInfo()
) {
$fetchTransactionAllowed = $this->_authorization->isAllowed('Magento_Sales::transactions_fetch');
$canFetchTransaction = $this->orderPaymentRepository->get($this->_txn->getPaymentId())
->getMethodInstance()
->canFetchTransactionInfo();

if ($fetchTransactionAllowed && $canFetchTransaction) {
$fetchUrl = $this->getUrl('sales/*/fetch', ['_current' => true]);
$this->buttonList->add(
'fetch',
Expand Down

0 comments on commit 5acea4a

Please sign in to comment.