Skip to content

Commit b5d4bf6

Browse files
authored
Merge branch 'main' into phpstan-v2
2 parents e243cd7 + b116d2e commit b5d4bf6

File tree

4 files changed

+34
-45
lines changed

4 files changed

+34
-45
lines changed

README.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,9 @@ See: https://docs.openmage.org/
2121

2222
---
2323

24-
## Public Communication
24+
## Sponsorship
2525

26-
* [Discord](https://discord.gg/EV8aNbU) (maintained by Flyingmana)
27-
28-
## Maintainers
29-
30-
* [Daniel Fahlke](https://github.com/Flyingmana)
31-
* [David Robinson](https://github.com/drobinson)
32-
* [Fabrizio Balliano](https://github.com/fballiano)
33-
* [Lee Saferite](https://github.com/LeeSaferite)
34-
* [Mohamed Elidrissi](https://github.com/elidrissidev)
35-
* [Ng Kiat Siong](https://github.com/kiatng)
36-
* [Tymoteusz Motylewski](https://github.com/tmotyl)
26+
* [opencollective](https://opencollective.com/openmage) (maintained by [Daniel Fahlke](https://github.com/Flyingmana) and [Colin Mollenhour](https://github.com/colinmollenhour))
3727

3828
## License
3929

app/code/core/Mage/SalesRule/Model/Quote/Discount.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function collect(Mage_Sales_Model_Quote_Address $address)
6464
$this->_calculator->init($store->getWebsiteId(), $quote->getCustomerGroupId(), $quote->getCouponCode());
6565
$this->_calculator->initTotals($items, $address);
6666

67-
$address->setDiscountDescription([]);
67+
$address->setDiscountDescription('');
6868
/** @var Mage_Sales_Model_Quote_Item[] $items */
6969
$items = $this->_calculator->sortItemsByPriority($items);
7070
foreach ($items as $item) {
@@ -79,9 +79,6 @@ public function collect(Mage_Sales_Model_Quote_Address $address)
7979
continue;
8080
}
8181

82-
$eventArgs['item'] = $item;
83-
Mage::dispatchEvent('sales_quote_address_discount_item', $eventArgs);
84-
8582
if ($item->getHasChildren() && $item->isChildrenCalculated()) {
8683
foreach ($item->getChildren() as $child) {
8784
$this->_calculator->process($child);
@@ -92,6 +89,8 @@ public function collect(Mage_Sales_Model_Quote_Address $address)
9289
}
9390
} else {
9491
$this->_calculator->process($item);
92+
$eventArgs['item'] = $item;
93+
Mage::dispatchEvent('sales_quote_address_discount_item', $eventArgs);
9594
$this->_aggregateItemDiscount($item);
9695
}
9796
}
@@ -143,7 +142,7 @@ public function fetch(Mage_Sales_Model_Quote_Address $address)
143142

144143
if ($amount != 0) {
145144
$description = $address->getDiscountDescription();
146-
if (strlen($description)) {
145+
if (is_string($description) && strlen($description)) {
147146
$title = Mage::helper('sales')->__('Discount (%s)', $description);
148147
} else {
149148
$title = Mage::helper('sales')->__('Discount');

composer.lock

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ extra:
8181
- icon: fontawesome/brands/github
8282
link: https://github.com/OpenMage/magento-lts
8383
- icon: fontawesome/brands/discord
84-
link: https://discord.gg/EV8aNbU
84+
link: https://discord.gg/R2q5WadstX
8585
- icon: fontawesome/brands/stack-overflow
8686
link: https://magento.stackexchange.com/tags/openmage
8787
- icon: fontawesome/brands/x-twitter

0 commit comments

Comments
 (0)