Skip to content

Commit

Permalink
Import Magento Release 1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Magento Mirror committed Jan 17, 2009
1 parent b5a5fba commit 5b1e92d
Show file tree
Hide file tree
Showing 16 changed files with 94 additions and 3 deletions.
18 changes: 18 additions & 0 deletions STATUS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ FIXED BUGS:
#5689: Customer Export
#5694: Unable to use capital letters in e-mail address
#5695: Fatal error after password recovery in the admin page
#5712: Paypal Standard Shipping and Tax Issue
#5714: magento crash when seting wrong package name
#5720: no product description in default theme. Also prevented bug in blank.
#5722: Error on Web Services -> Users
Expand All @@ -111,10 +112,17 @@ FIXED BUGS:
#5856: Exception after in the shopping cart with 0.00 tax rate
#5873: Security Warning in Admin
#5875: Sitemap error
#5833: Multistore: Call to a member function getStoreIds()
#5881: catalogindex_reindex_all cron job fails
#5882: Session of Admin User persists even after user is deleted
#5891: Cannot add Custom Options in Safari 3x
#5911: Can't add (inch) symbol
#6066: Configurable products not reducing when purchased
#6072: Virtual products and Paypal Standard
#6120: People can order configurable products when they are out of stock
#6121: Payment screen does not work correctly using Modern theme
#6147: Cannot check out shopping cart that use Check / Money Order as payment option
#6269: Fatal Error with Multiple Websites - getStoreIds()
Fixed dynamic SKU & weight, fixed SKU for products with custom options, multiselect options
Fixed admin notifications URL
Fixed cache management issues
Expand Down Expand Up @@ -196,6 +204,13 @@ FIXED BUGS:
Fixed wrong SOAP content type
Fixed errors in invoice/packingslip PDF print-out (added missing fonts, fixed overlapping columns and text wrapping, displaying of non-latin1 texts)
Fixed non-working store switcher
Fixed paypal direct/express/standard errors and shipping calculation when only virtual products are in cart
Fixed internal redirects validation for secure URLs
Fixed configurable products stock deduction
Fixed minimal MySQL version checking in installation wizard
Fixed admin order refund - base tax amount was not stored after refund
Fixed single page checkout issues in modern theme



CHANGES:
Expand Down Expand Up @@ -270,6 +285,9 @@ CHANGES:
iPhone theme updated for 1.1
Upgraded core/helper/string for binary-safe string operations

Added html escaping in search queries in admin dashboard
Added displaying maximum allowed dataflow upload file size according to server settings


NOTES:

Expand Down
2 changes: 1 addition & 1 deletion app/Mage.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ final class Mage {

public static function getVersion()
{
return '1.1.3';
return '1.1.4';
}

/**
Expand Down
5 changes: 5 additions & 0 deletions app/code/core/Mage/Catalog/Model/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,4 +429,9 @@ public function getName()
return $this->_getData('name');
}

protected function _beforeDelete()
{
$this->_protectFromNonAdmin();
return parent::_beforeDelete();
}
}
3 changes: 2 additions & 1 deletion app/code/core/Mage/Catalog/Model/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ protected function _beforeDelete()
{
$this->_substractQtyFromQuotes();
$this->cleanCache();
parent::_beforeDelete();
$this->_protectFromNonAdmin();
return parent::_beforeDelete();
}

/**
Expand Down
1 change: 0 additions & 1 deletion app/code/core/Mage/Catalog/Model/Product/Compare/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ public function bindCustomerLogin()
$customer = Mage::getSingleton('customer/session')->getCustomer();
$visitorItemCollection = Mage::getResourceModel('catalog/product_compare_item_collection')
->setObject('catalog/product_compare_item')
->useProductItem(true)
->setVisitorId(Mage::getSingleton('log/visitor')->getId())
->load();

Expand Down
12 changes: 12 additions & 0 deletions app/code/core/Mage/Core/Model/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,18 @@ protected function _beforeDelete()
return $this;
}

/**
* Safeguard func that will check, if we are in admin area
*
* @throws Mage_Core_Exception
*/
protected function _protectFromNonAdmin()
{
if (!Mage::app()->getStore()->isAdmin()) {
Mage::throwException(Mage::helper('core')->__('Cannot complete this operation from non-admin area.'));
}
}

/**
* Processing object after delete data
*
Expand Down
5 changes: 5 additions & 0 deletions app/code/core/Mage/Core/Model/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -742,4 +742,9 @@ public function getName()
return $this->_getData('name');
}

protected function _beforeDelete()
{
$this->_protectFromNonAdmin();
return parent::_beforeDelete();
}
}
5 changes: 5 additions & 0 deletions app/code/core/Mage/Core/Model/Store/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,9 @@ public function getWebsiteId()
return $this->_getData('website_id');
}

protected function _beforeDelete()
{
$this->_protectFromNonAdmin();
return parent::_beforeDelete();
}
}
5 changes: 5 additions & 0 deletions app/code/core/Mage/Core/Model/Website.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,4 +433,9 @@ public function getCode()
return $this->_getData('code');
}

protected function _beforeDelete()
{
$this->_protectFromNonAdmin();
return parent::_beforeDelete();
}
}
5 changes: 5 additions & 0 deletions app/code/core/Mage/Customer/Model/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -924,4 +924,9 @@ function validateAddress(array $data, $type = 'billing')
return false;
}

protected function _beforeDelete()
{
$this->_protectFromNonAdmin();
return parent::_beforeDelete();
}
}
6 changes: 6 additions & 0 deletions app/code/core/Mage/Review/Model/Review.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,10 @@ public function appendSummary($collection)
}
}
}

protected function _beforeDelete()
{
$this->_protectFromNonAdmin();
return parent::_beforeDelete();
}
}
6 changes: 6 additions & 0 deletions app/code/core/Mage/Sales/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -1417,4 +1417,10 @@ protected function _needToAddDummy($item, $qtys = array()) {
return false;
}
}

protected function _beforeDelete()
{
$this->_protectFromNonAdmin();
return parent::_beforeDelete();
}
}
6 changes: 6 additions & 0 deletions app/code/core/Mage/Sales/Model/Order/Creditmemo.php
Original file line number Diff line number Diff line change
Expand Up @@ -667,4 +667,10 @@ protected function _getEmails($configPath)
}
return false;
}

protected function _beforeDelete()
{
$this->_protectFromNonAdmin();
return parent::_beforeDelete();
}
}
6 changes: 6 additions & 0 deletions app/code/core/Mage/Sales/Model/Order/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -684,4 +684,10 @@ protected function _getEmails($configPath)
}
return false;
}

protected function _beforeDelete()
{
$this->_protectFromNonAdmin();
return parent::_beforeDelete();
}
}
6 changes: 6 additions & 0 deletions app/code/core/Mage/Sales/Model/Order/Shipment.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,4 +448,10 @@ protected function _beforeSave()
);
}
}

protected function _beforeDelete()
{
$this->_protectFromNonAdmin();
return parent::_beforeDelete();
}
}
6 changes: 6 additions & 0 deletions app/code/core/Mage/Tag/Model/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,10 @@ public function getPopularCollection()
{
return Mage::getResourceModel('tag/popular_collection');
}

protected function _beforeDelete()
{
$this->_protectFromNonAdmin();
return parent::_beforeDelete();
}
}

0 comments on commit 5b1e92d

Please sign in to comment.