Skip to content

Commit

Permalink
Revert "refs #22125 - Fix AdminOrder error from Media::addJsDefL()"
Browse files Browse the repository at this point in the history
This reverts commit cad1e2f.
  • Loading branch information
iuliia200 committed Feb 6, 2020
1 parent 2ea62df commit d5cf43d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 3 additions & 5 deletions paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -1415,13 +1415,11 @@ public function hookBackOfficeHeader()
}

if (Tools::getValue('controller') == "AdminOrders" && Tools::getValue('id_order')) {
$this->context->smarty->assign('chb_braintree_refund', $this->l('Refund PayPal'));
Media::addJsDefL('chb_braintree_refund', $this->l('Refund PayPal'));
$this->context->controller->addJS(_PS_MODULE_DIR_ . $this->name . '/views/js/bo_order.js');

return $this->display(__FILE__, 'views/templates/hook/bo_header.tpl');
} else {
return null;
}

return null;
}

public function renderExpressCheckoutButton($type)
Expand Down
3 changes: 0 additions & 3 deletions views/templates/hook/bo_header.tpl

This file was deleted.

0 comments on commit d5cf43d

Please sign in to comment.