Skip to content

Commit d92a24a

Browse files
edannenbergcolinmollenhour
authored andcommitted
Fix 1.9.3.x upstream merges
The upstream merges for some 1.9.3.x releases introduced a few inconsistencies: * cms_generate_breadcrumbs event is fired twice * related to the above dd41230 is applied to wrong code block * few locale .csv have now escaped single quote entries along with the entries where those got removed in #46 * #21 got reverted at some point * var/package dir has 5 obsolete xml files * slightly different configuration in Sales, SalesRule and Tax config.xml * Mage_SalesRule_Model_Validator is outdated compared with latest from 1.9.3.7
1 parent a313512 commit d92a24a

File tree

9 files changed

+198
-206
lines changed

9 files changed

+198
-206
lines changed

app/code/core/Mage/Cms/Block/Page.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ protected function _prepareLayout()
9191

9292
Mage::dispatchEvent('cms_generate_breadcrumbs', array('breadcrumbs' => $breadcrumbsObject));
9393

94-
foreach ($breadcrumbsObject->getCrumbs() as $breadcrumbsItem) {
95-
$breadcrumbs->addCrumb($breadcrumbsItem['crumbName'], $breadcrumbsItem['crumbInfo']);
94+
if ($breadcrumbs instanceof Mage_Page_Block_Html_Breadcrumbs) {
95+
foreach ($breadcrumbsObject->getCrumbs() as $breadcrumbsItem) {
96+
$breadcrumbs->addCrumb($breadcrumbsItem['crumbName'], $breadcrumbsItem['crumbInfo']);
97+
}
9698
}
9799
}
98100

@@ -108,16 +110,6 @@ protected function _prepareLayout()
108110
$head->setDescription($page->getMetaDescription());
109111
}
110112

111-
$breadcrumbsObject = new Varien_Object();
112-
$breadcrumbsObject->setCrumbs($breadcrumbsArray);
113-
114-
Mage::dispatchEvent('cms_generate_breadcrumbs', array('breadcrumbs' => $breadcrumbsObject));
115-
116-
if ($breadcrumbs instanceof Mage_Page_Block_Html_Breadcrumbs) {
117-
foreach ($breadcrumbsObject->getCrumbs() as $breadcrumbsItem) {
118-
$breadcrumbs->addCrumb($breadcrumbsItem['crumbName'], $breadcrumbsItem['crumbInfo']);
119-
}
120-
}
121113
return parent::_prepareLayout();
122114
}
123115

app/code/core/Mage/Sales/etc/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@
12271227
</grand_total>
12281228
<msrp>
12291229
<class>sales/quote_address_total_msrp</class>
1230-
<before>weee,freeshipping</before>
1230+
<before>grand_total</before>
12311231
</msrp>
12321232
</totals>
12331233
<nominal_totals>

app/code/core/Mage/SalesRule/Model/Validator.php

Lines changed: 188 additions & 182 deletions
Large diffs are not rendered by default.

app/code/core/Mage/SalesRule/etc/config.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@
134134
<totals>
135135
<freeshipping>
136136
<class>salesrule/quote_freeshipping</class>
137-
<after>subtotal,tax_subtotal</after>
138-
<before>shipping</before>
137+
<after>subtotal</after>
138+
<before>tax_subtotal,shipping</before>
139139
</freeshipping>
140140
<discount>
141141
<class>salesrule/quote_discount</class>

app/code/core/Mage/Tax/etc/config.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@
162162
<totals>
163163
<tax_subtotal>
164164
<class>tax/sales_total_quote_subtotal</class>
165-
<after>subtotal</after>
166-
<before>tax,discount,msrp</before>
165+
<after>subtotal,nominal,shipping,freeshipping</after>
166+
<before>tax,discount</before>
167167
</tax_subtotal>
168168
<tax_shipping>
169169
<class>tax/sales_total_quote_shipping</class>

app/locale/en_US/Mage_Adminhtml.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@
217217
"Cannot send shipment information.","Cannot send shipment information."
218218
"Cannot update item quantity.","Cannot update item quantity."
219219
"Cannot update the item's quantity.","Cannot update the item's quantity."
220-
"Cannot update the item\'s quantity.","Cannot update the item\'s quantity."
221220
"Card Verification Number","Card Verification Number"
222221
"Catalog","Catalog"
223222
"Catalog Price Rules","Catalog Price Rules"

app/locale/en_US/Mage_Paypal.csv

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@
334334
"Merchant Protection Eligibility","Merchant Protection Eligibility"
335335
"Merchant Referral Bonus","Merchant Referral Bonus"
336336
"Merchant account doesn't have a withdrawal mechanism. Merchant must manually accept or deny this payment from your Account Overview.","Merchant account doesn't have a withdrawal mechanism. Merchant must manually accept or deny this payment from your Account Overview."
337-
"Merchant account doesn\'t have a withdrawal mechanism. Merchant must manually accept or deny this payment from your Account Overview.","Merchant account doesn\'t have a withdrawal mechanism. Merchant must manually accept or deny this payment from your Account Overview."
338337
"Merchant account is not verified.","Merchant account is not verified."
339338
"Merchant denied this pending payment.","Merchant denied this pending payment."
340339
"Merchant holds a non-U.S. account and does not have a withdrawal mechanism.","Merchant holds a non-U.S. account and does not have a withdrawal mechanism."
@@ -607,7 +606,6 @@
607606
"Virtual Terminal Payment","Virtual Terminal Payment"
608607
"Void","Void"
609608
"Waiting until Customer's eCheck will be cleared.","Waiting until Customer's eCheck will be cleared."
610-
"Waiting until Customer\'s eCheck will be cleared.","Waiting until Customer\'s eCheck will be cleared."
611609
"We prefer PayPal (150 X 40)","We prefer PayPal (150 X 40)"
612610
"We prefer PayPal (150 X 60)","We prefer PayPal (150 X 60)"
613611
"Website Payments Plus","Website Payments Plus"

app/locale/en_US/Mage_Review.csv

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
"5 stars","5 stars"
1313
"<a href=""%1$s"" onclick=""this.target='blank'"">%2$s %3$s</a> <a href=""mailto:%4$s"">(%4$s)</a>","<a href=""%1$s"" onclick=""this.target='blank'"">%2$s %3$s</a> <a href=""mailto:%4$s"">(%4$s)</a>"
1414
"<a href=""%1$s"" onclick=""this.target='blank'"">%2$s</a> <a href=""mailto:%3$s"">(%3$s)</a>","<a href=""%1$s"" onclick=""this.target='blank'"">%2$s</a> <a href=""mailto:%3$s"">(%3$s)</a>"
15-
"<a href=""%1$s"" onclick=""this.target=\'blank\'"">%2$s %3$s</a> <a href=""mailto:%4$s"">(%4$s)</a>","<a href=""%1$s"" onclick=""this.target=\'blank\'"">%2$s %3$s</a> <a href=""mailto:%4$s"">(%4$s)</a>"
16-
"<a href=""%1$s"" onclick=""this.target=\'blank\'"">%2$s</a> <a href=""mailto:%3$s"">(%3$s)</a>","<a href=""%1$s"" onclick=""this.target=\'blank\'"">%2$s</a> <a href=""mailto:%3$s"">(%3$s)</a>"
1715
"Add New Review","Add New Review"
1816
"Add Your Review","Add Your Review"
1917
"Administrator","Administrator"

app/locale/en_US/Mage_Rss.csv

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
"%s - Special Products","%s - Special Products"
33
"%s RSS Feed","%s RSS Feed"
44
"%s has reached a quantity of %s.","%s has reached a quantity of %s."
5-
"%s's Wishlist","%s's Wishlist"
6-
"%s\'s Wishlist","%s\'s Wishlist"
75
"Admin Catalog","Admin Catalog"
86
"Admin Order","Admin Order"
7+
"%s's Wishlist","%s's Wishlist"
98
"Cannot retrieve the wishlist","Cannot retrieve the wishlist"
109
"Catalog","Catalog"
1110
"Category Feeds","Category Feeds"

0 commit comments

Comments
 (0)