Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed call to a member function setOnclick() on false in Mage_Adminhtml_Block_Sales_Order_View_Giftmessage #3821

Merged
merged 3 commits into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading