Permalink
Browse files

Added fix for loaded object check, to prevent viewing form if address…

… not found.
  • Loading branch information...
1 parent b80a751 commit cd665b12ef70709f5eaa5e2c45d0d48ec692deda @IvanChepurnyi IvanChepurnyi committed Jul 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php
@@ -722,7 +722,7 @@ public function addressAction()
{
$addressId = $this->getRequest()->getParam('address_id');
$address = Mage::getModel('Mage_Sales_Model_Order_Address')->load($addressId);
- if ($address) {
+ if ($address->getId()) {
Mage::register('order_address', $address);
$this->loadLayout();
// Do not display VAT validation button on edit order address form

0 comments on commit cd665b1

Please sign in to comment.