Skip to content

Commit 4fb20a6

Browse files
Patrick StahlPatrick Stahl
authored andcommitted
Merge pull request #7068 in SW/shopware from sw-22575/5.5/fix-order-payment-status-translation to 5.5
* commit '68ba6a5f11c556a089ac7d3b4e8f48b754850912': NTR - Added update for UPGRADE.md SW-22575 - Fix order payment status translations in batch-processing window
2 parents ffde61d + 68ba6a5 commit 4fb20a6

File tree

3 files changed

+47
-3
lines changed

3 files changed

+47
-3
lines changed

UPGRADE-5.5.md

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,29 @@ This changelog references changes done in Shopware 5.5 patch versions.
2727
* Added numeric amounts for cart items in cart array structure
2828
* Added new notify event `Shopware_CronJob_Notification_Product_QueryBuilder` to the notification plugin to be able to change the QueryBuilder
2929
* Added new filter event `Shopware_Modules_Basket_InsertDiscount_FilterParams` to the basket discount functionality
30-
* Added service `\Shopware\Components\StreamProtocolValidator` (service id: `shopware.components.stream_protocol_validator`) to validate stream protocols in URLs
30+
* Added service `\Shopware\Components\StreamProtocolValidator` (service id: `shopware.components.stream_protocol_validator`) to validate stream protocols in URLs
31+
* Added method `resetShop` to `Shopware/Components/Snippet/Manager.php` to reset the assigned shop
32+
* Added event `Shopware_Modules_Admin_GetDispatchBasket_Calculation_QueryBuilder` to change the possible dispatches for the basket (SW-22646)
33+
* Added confirmation dialog when deleting or overwriting a order document
34+
* Added streamId translation of categories
35+
* Added "not in" compare to product stream attributes
36+
* Added information to systeminfo to show time difference between MySQL and PHP
37+
* Added Polish language to installer
38+
* Added amountNumeric and priceNumeric to order items in template
39+
* Added numeric amounts for basket items
40+
* Added column "active" for product feed-list in the backend
41+
* Added mapping for `voteAverage.average` for elastic search indexing
42+
* Added proper helpText to 'displayOnlySubShopVotes' configuration
43+
* Added possibility to remove supplier images via REST API
44+
* Added unit test for manufacturers api resource
45+
* Added instance check for ES category facet
46+
* Added random sorting option to emotion products slider
47+
* Added support for configurable lengths of the meta description
48+
* Added `getListQueryBuilder` method to `Shopware/Models/Order/Repository.php`
49+
* Added plugin manager reloading on plugin update failure
50+
* Added `CheapestPriceESGateway` to be able to use the price filter with ES
51+
* Added new filter event `Shopware_Controllers_Article_CreateConfiguratorVariants_FilterData` to article backend controller to modify variant data during generation
52+
* Added new property `pageShortParameter` in `jquery.infinite-scrolling.js` to add compatibility with a custom sPage query alias in the product listings
3153

3254
### Changes
3355

@@ -46,13 +68,21 @@ This changelog references changes done in Shopware 5.5 patch versions.
4668
* Changed VariantFilter to work with different customer group then fallback customer group
4769
* Changed `detailAction` method of `Emotion` backend controller to not add the shop base URL to media URLs again if it's already set
4870
* Changed statistic call to also encode `&` in `referer` parameter
49-
* Changed fixed page query parameter in `themes/Frontend/Bare/frontend/listing/actions/action-pagination.tpl` with it's dynamic alias.
5071
* Changed menu-scroller to hide scrollbar on IE 11
72+
* Changed Media Resource of REST API to deal with uploads that contain a ftp file-path
73+
* Changed product module preview combobox to preselect the default shop
74+
* Changed API media resource to support `file://` paths
75+
* Changed sub-albums to inherit thumbnail settings on creation
76+
* Changed ajax variant jquery plugin have a own function for pushing history states
77+
* Changed default value of required in config.xsd to match `XmlConfigDefinitionReader`
78+
* Changed `JsonRequest` to use `getRawBody()` instead of `php://input`
79+
* Changed `Shopware.apps.Voucher.model.Tax` to explicit define field types
5180

5281
### Removals
5382

5483
* Removed trailing slash from LESS variable `@font-directory`
5584
* Removed private method `Shopware_Controllers_Widgets_Emotion::getEmotionsByCategoryId`
85+
* Remove unused `ajax_validate_billing` case in `jquery.register.js`
5686

5787
## 5.5.1
5888

@@ -180,7 +210,6 @@ This changelog references changes done in Shopware 5.5 patch versions.
180210
* Added `Shopware_Controllers_Backend_Order::getMailTemplatesAction`
181211
* Added `Shopware\Models\Mail\Mail::isDocumentMail`
182212
* Added `Shopware\Models\Mail\Repository::getMailsListQueryBuilder`
183-
* Added new filter event `Shopware_Controllers_Article_CreateConfiguratorVariants_FilterData` to article backend controller to modify variant data during generation
184213

185214
### Changes
186215

engine/Shopware/Components/Snippet/Manager.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,20 @@ public function setShop(Shop $shop)
176176
return $this;
177177
}
178178

179+
/**
180+
* Resets the currently set shop of the SnippetManager
181+
*
182+
* @return Shopware_Components_Snippet_Manager
183+
*/
184+
public function resetShop()
185+
{
186+
$this->shop = null;
187+
$this->namespaces = [];
188+
$this->extends = [];
189+
190+
return $this;
191+
}
192+
179193
/**
180194
* @param $dir
181195
*

engine/Shopware/Controllers/Backend/Order.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,7 @@ public function batchProcessAction()
843843
// This is necessary, since the "checkOrderStatus" method might change the locale due to translation issues
844844
// when sending an order status mail. Therefore we reset it here to the chosen backend language.
845845
$this->get('snippets')->setLocale($previousLocale);
846+
$this->get('snippets')->resetShop();
846847
}
847848

848849
$data['paymentStatus'] = $stateTranslator->translateState(StateTranslatorService::STATE_PAYMENT, $modelManager->toArray($order->getPaymentStatus()));

0 commit comments

Comments
 (0)