Skip to content

Commit

Permalink
Fixed $address is null in AddressController. (OpenMage#3373)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiatng committed Jul 11, 2023
1 parent 996c6ec commit c36f57d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,11 @@ public function formPostAction()
$this->_getSession()->setAddressFormData($this->getRequest()->getPost())
->addException($e, $this->__('Cannot save address.'));
}

return $this->_redirectError(Mage::getUrl('*/*/edit', ['id' => $address->getId()]));
}

return $this->_redirectError(Mage::getUrl('*/*/edit', ['id' => $address->getId()]));
$this->_redirectReferer();
}

/**
Expand Down

0 comments on commit c36f57d

Please sign in to comment.