Skip to content

Commit

Permalink
Fixed call to a member function setOnclick() on false in Mage_Adminht…
Browse files Browse the repository at this point in the history
…ml_Block_Sales_Order_View_Giftmessage (#3821)

Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com>
  • Loading branch information
fballiano and kiatng authored Feb 19, 2024
1 parent 697d708 commit 663f05e
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function getOrder()
*/
protected function _beforeToHtml()
{
if (Mage::helper('core')->isModuleOutputEnabled('Mage_Giftmessage')) {
if (Mage::helper('core')->isModuleOutputEnabled('Mage_GiftMessage')) {
if ($this->getParentBlock() && ($order = $this->getOrder())) {
$this->setEntity($order);
}
Expand All @@ -61,13 +61,11 @@ protected function _beforeToHtml()
}

/**
* Prepares layout of block
*
* @return $this
*/
protected function _prepareLayout()
{
if (Mage::helper('core')->isModuleOutputEnabled('Mage_Giftmessage')) {
if (Mage::helper('core')->isModuleOutputEnabled('Mage_GiftMessage')) {
$this->setChild(
'save_button',
$this->getLayout()->createBlock('adminhtml/widget_button')
Expand All @@ -81,8 +79,6 @@ protected function _prepareLayout()
}

/**
* Retrieve save button html
*
* @return string
* @throws Exception
*/
Expand Down

0 comments on commit 663f05e

Please sign in to comment.