Skip to content

Commit 85000e6

Browse files
committed
MAGETWO-71643: [BUGFIX] Flat Category reindexList of AllChildren if the url_key of t… #10557
- Merge Pull Request #10557 from experius/magento2:develop-pr - Merged commits: 1. 96be1ce
2 parents a386178 + 96be1ce commit 85000e6

File tree

38 files changed

+962
-265
lines changed

38 files changed

+962
-265
lines changed

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,38 @@
1+
2.1.10-dev
2+
=============
3+
* GitHub issues:
4+
* [#6718](https://github.com/magento/magento2/issues/6718) -- Custom composer modules break Component Manager (fixed in [#9692](https://github.com/magento/magento2/pull/9692))
5+
* [#4170](https://github.com/magento/magento2/issues/4170) -- Magento2 Mini Cart Items Issue (fixed in [#10050](https://github.com/magento/magento2/pull/10050))
6+
* [#5377](https://github.com/magento/magento2/issues/5377) -- "No items" in minicart in 2.1 (fixed in [#10050](https://github.com/magento/magento2/pull/10050))
7+
* [#6999](https://github.com/magento/magento2/issues/6999) -- Performance: getConfigurableAttributes cache is broken (fixed in [#9809](https://github.com/magento/magento2/pull/9809))
8+
* [#6882](https://github.com/magento/magento2/issues/6882) -- Minicart empty if FPC disabled in Magneto 2.1.1 (fixed in [#10050](https://github.com/magento/magento2/pull/10050))
9+
* [#4731](https://github.com/magento/magento2/issues/4731) -- developer mode throws an exception, but production mode is good (fixed in [#9718](https://github.com/magento/magento2/pull/9718))
10+
* [#7827](https://github.com/magento/magento2/issues/7827) -- DOM schema validation error (fixed in [#9718](https://github.com/magento/magento2/pull/9718))
11+
* [#3872](https://github.com/magento/magento2/issues/3872) -- Slash as category URL suffix gives 404 error on all category pages (fixed in [#10164](https://github.com/magento/magento2/pull/10164))
12+
* [#4660](https://github.com/magento/magento2/issues/4660) -- Multiple URLs causes duplicated content (fixed in [#10164](https://github.com/magento/magento2/pull/10164))
13+
* [#4876](https://github.com/magento/magento2/issues/4876) -- Product URL Suffix "/" results in 404 error (fixed in [#10164](https://github.com/magento/magento2/pull/10164))
14+
* [#8264](https://github.com/magento/magento2/issues/8264) -- Custom URL Rewrite where the request path ends with a forward slash is not matched (fixed in [#10164](https://github.com/magento/magento2/pull/10164))
15+
* [#1980](https://github.com/magento/magento2/issues/1980) -- Product attributes' labels are not translated on product edit page (fixed in [#10184](https://github.com/magento/magento2/pull/10184))
16+
* [#6818](https://github.com/magento/magento2/issues/6818) -- PageCache gives error "Uncaught TypeError: element.prop is not a function" when there is an iframe (fixed in [#10218](https://github.com/magento/magento2/pull/10218))
17+
* [#6175](https://github.com/magento/magento2/issues/6175) -- Unable to generate unsecure URL if current URL is secure (fixed in [#10188](https://github.com/magento/magento2/pull/10188))
18+
* [#5651](https://github.com/magento/magento2/issues/5651) -- Purchase date on admin screen is always *:07:00 (fixed in [#10260](https://github.com/magento/magento2/pull/10260))
19+
* [#9619](https://github.com/magento/magento2/issues/9619) -- Impossible to create Text Swatch 0 (Zero) (fixed in [#10282](https://github.com/magento/magento2/pull/10282))
20+
* [#10266](https://github.com/magento/magento2/issues/10266) -- Product Attributes - Size 0 (fixed in [#10282](https://github.com/magento/magento2/pull/10282))
21+
* GitHub pull requests:
22+
* [#9692](https://github.com/magento/magento2/pull/9692) -- Backport of MAGETWO-59256 for 2.1: Custom composer modules break Component Manager #6718 (by @JTimNolan)
23+
* [#9809](https://github.com/magento/magento2/pull/9809) -- Fix issue #6999: Configurable attribute cache was never hit (by @thlassche)
24+
* [#10050](https://github.com/magento/magento2/pull/10050) -- [2.1-backport] Customer-data is not updates after login when full page cache disabled (by @ihor-sviziev)
25+
* [#10075](https://github.com/magento/magento2/pull/10075) -- Fix date format in adminhtml order grid (by @alessandroniciforo)
26+
* [#9718](https://github.com/magento/magento2/pull/9718) -- ported fix from 237e54d - MAGETWO-55684: Fix XSD schema (by @pixelhed)
27+
* [#10159](https://github.com/magento/magento2/pull/10159) -- Fix labels tranlation on category page (by @fernandofauth)
28+
* [#10164](https://github.com/magento/magento2/pull/10164) -- [2.1-backport] Fix trailing slash used in url rewrites (by @ihor-sviziev)
29+
* [#10184](https://github.com/magento/magento2/pull/10184) -- Fixed: Product attributes labels are not translated on product edit page (by @fernandofauth)
30+
* [#10211](https://github.com/magento/magento2/pull/10211) -- Add clarification about deprecated methods in Abstract model (by @ihor-sviziev)
31+
* [#10218](https://github.com/magento/magento2/pull/10218) -- Backport 1b55a64 to 2.1 - Fixes #6818 (by @ajpevers)
32+
* [#10188](https://github.com/magento/magento2/pull/10188) -- magento/magento2:#6175 Fixed Unable to generate unsecure URL if current URL is secure (by @arshadpkm)
33+
* [#10260](https://github.com/magento/magento2/pull/10260) -- Fix order date format in Orders Grid (by @ihor-sviziev)
34+
* [#10282](https://github.com/magento/magento2/pull/10282) -- 2.1 - Allow to use text swatch 0 (by @ihor-sviziev)
35+
136
2.1.1
237
=============
338
To get detailed information about changes in Magento 2.1.1, please visit [Magento Community Edition (CE) Release Notes](http://devdocs.magento.com/guides/v2.1/release-notes/ReleaseNotes2.1.1CE.html "Magento Community Edition (CE) Release Notes")

CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ If you are a new GitHub user, we recommend that you create your own [free github
2929
3. Create and test your work.
3030
4. Fork the Magento 2 repository according to [Fork a repository instructions](http://devdocs.magento.com/guides/v2.0/contributor-guide/contributing.html#fork) and when you are ready to send us a pull request – follow [Create a pull request instructions](http://devdocs.magento.com/guides/v2.0/contributor-guide/contributing.html#pull_request).
3131
5. Once your contribution is received, Magento 2 development team will review the contribution and collaborate with you as needed to improve the quality of the contribution.
32+
33+
## Code of Conduct
34+
35+
Please note that this project is released with a Contributor Code of Conduct. We expect you to agree to its terms when participating in this project.
36+
The full text is available in the repository [Wiki](https://github.com/magento/magento2/wiki/Magento-Code-of-Conduct).

app/code/Magento/Backend/view/adminhtml/ui_component/design_config_form.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<item name="componentType" xsi:type="string">dynamicRows</item>
4444
<item name="recordTemplate" xsi:type="string">record</item>
4545
<item name="deleteButtonLabel" xsi:type="string">Remove</item>
46-
<item name="addButtonLabel" xsi:type="string">Add New User Agent Rule</item>
46+
<item name="addButtonLabel" xsi:type="string" translate="true">Add New User Agent Rule</item>
4747
<item name="deleteProperty" xsi:type="boolean">false</item>
4848
<item name="dndConfig" xsi:type="array">
4949
<item name="enabled" xsi:type="boolean">false</item>
@@ -67,7 +67,7 @@
6767
<item name="dataType" xsi:type="string">text</item>
6868
<item name="dataScope" xsi:type="string">search</item>
6969
<item name="fit" xsi:type="boolean">false</item>
70-
<item name="label" xsi:type="string">Search String</item>
70+
<item name="label" xsi:type="string" translate="true">Search String</item>
7171
<item name="showFallbackReset" xsi:type="boolean">false</item>
7272
</item>
7373
</argument>
@@ -80,7 +80,7 @@
8080
<item name="dataType" xsi:type="string">text</item>
8181
<item name="dataScope" xsi:type="string">value</item>
8282
<item name="fit" xsi:type="boolean">false</item>
83-
<item name="label" xsi:type="string">Theme Name</item>
83+
<item name="label" xsi:type="string" translate="true">Theme Name</item>
8484
<item name="showFallbackReset" xsi:type="boolean">false</item>
8585
</item>
8686
</argument>
@@ -91,7 +91,7 @@
9191
<item name="componentType" xsi:type="string">actionDelete</item>
9292
<item name="dataType" xsi:type="string">text</item>
9393
<item name="fit" xsi:type="boolean">false</item>
94-
<item name="label" xsi:type="string">Actions</item>
94+
<item name="label" xsi:type="string" translate="true">Actions</item>
9595
<item name="sortOrder" xsi:type="string">50</item>
9696
<item name="additionalClasses" xsi:type="string">data-grid-actions-cell</item>
9797
<item name="template" xsi:type="string">Magento_Backend/dynamic-rows/cells/action-delete</item>

app/code/Magento/Catalog/Model/Category.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,9 @@ public function reindex()
10901090
$flatIndexer = $this->indexerRegistry->get(Indexer\Category\Flat\State::INDEXER_ID);
10911091
if (!$flatIndexer->isScheduled()) {
10921092
$flatIndexer->reindexRow($this->getId());
1093+
if ($this->dataHasChangedFor('url_key')) {
1094+
$flatIndexer->reindexList(explode(',', $this->getAllChildren()));
1095+
}
10931096
}
10941097
}
10951098
$productIndexer = $this->indexerRegistry->get(Indexer\Category\Product::INDEXER_ID);

app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public function modifyMeta(array $meta)
244244
if ($attributes) {
245245
$meta[$groupCode]['children'] = $this->getAttributesMeta($attributes, $groupCode);
246246
$meta[$groupCode]['arguments']['data']['config']['componentType'] = Fieldset::NAME;
247-
$meta[$groupCode]['arguments']['data']['config']['label'] = __('%1', $group->getAttributeGroupName());
247+
$meta[$groupCode]['arguments']['data']['config']['label'] = __('%1', __($group->getAttributeGroupName()));
248248
$meta[$groupCode]['arguments']['data']['config']['collapsible'] = true;
249249
$meta[$groupCode]['arguments']['data']['config']['dataScope'] = self::DATA_SCOPE_PRODUCT;
250250
$meta[$groupCode]['arguments']['data']['config']['sortOrder'] =
@@ -546,7 +546,7 @@ public function setupAttributeMeta(ProductAttributeInterface $attribute, $groupC
546546
'required' => $attribute->getIsRequired(),
547547
'notice' => $attribute->getNote(),
548548
'default' => $attribute->getDefaultValue(),
549-
'label' => $attribute->getDefaultFrontendLabel(),
549+
'label' => __($attribute->getDefaultFrontendLabel()),
550550
'code' => $attribute->getAttributeCode(),
551551
'source' => $groupCode,
552552
'scopeLabel' => $this->getScopeLabel($attribute),
@@ -650,7 +650,7 @@ public function setupAttributeContainerMeta(ProductAttributeInterface $attribute
650650
'formElement' => 'container',
651651
'componentType' => 'container',
652652
'breakLine' => false,
653-
'label' => $attribute->getDefaultFrontendLabel(),
653+
'label' => __($attribute->getDefaultFrontendLabel()),
654654
'required' => $attribute->getIsRequired(),
655655
]
656656
);

app/code/Magento/Catalog/view/adminhtml/ui_component/category_form.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@
167167
<argument name="data" xsi:type="array">
168168
<item name="config" xsi:type="array">
169169
<item name="class" xsi:type="string">Magento\Catalog\Ui\Component\Category\Form\Element\Wysiwyg</item>
170+
<item name="label" xsi:type="string" translate="true">Description</item>
170171
<item name="formElement" xsi:type="string">wysiwyg</item>
171172
<item name="wysiwygConfigData" xsi:type="array">
172173
<item name="settings" xsi:type="array">
@@ -217,6 +218,7 @@
217218
<item name="sortOrder" xsi:type="number">70</item>
218219
<item name="dataType" xsi:type="string">string</item>
219220
<item name="formElement" xsi:type="string">select</item>
221+
<item name="label" xsi:type="string" translate="true">Display Mode</item>
220222
</item>
221223
</argument>
222224
</field>
@@ -253,6 +255,7 @@
253255
<item name="additionalClasses" xsi:type="string">admin__field-default</item>
254256
<item name="formElement" xsi:type="string">multiselect</item>
255257
<item name="source" xsi:type="string">category</item>
258+
<item name="label" xsi:type="string" translate="true">Available Product Listing Sort By</item>
256259
</item>
257260
</argument>
258261
</field>
@@ -290,6 +293,7 @@
290293
<item name="additionalClasses" xsi:type="string">admin__field-default</item>
291294
<item name="formElement" xsi:type="string">select</item>
292295
<item name="source" xsi:type="string">category</item>
296+
<item name="label" xsi:type="string" translate="true">Default Product Listing Sort By</item>
293297
</item>
294298
</argument>
295299
</field>
@@ -325,6 +329,7 @@
325329
<argument name="data" xsi:type="array">
326330
<item name="config" xsi:type="array">
327331
<item name="additionalClasses" xsi:type="string">admin__field-small</item>
332+
<item name="label" xsi:type="string" translate="true">Layered Navigation Price Step</item>
328333
<item name="formElement" xsi:type="string">input</item>
329334
<item name="source" xsi:type="string">category</item>
330335
<item name="addbefore" xsi:type="string">$</item>

app/code/Magento/Catalog/view/adminhtml/ui_component/product_listing.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,17 @@
3434
<item name="sticky" xsi:type="boolean">true</item>
3535
</item>
3636
</argument>
37-
<bookmark name="bookmarks"/>
37+
<container name="bookmarks">
38+
<argument name="data" xsi:type="array">
39+
<item name="config" xsi:type="array">
40+
<item name="component" xsi:type="string">Magento_Ui/js/grid/controls/bookmarks/bookmarks</item>
41+
<item name="displayArea" xsi:type="string">dataGridActions</item>
42+
<item name="storageConfig" xsi:type="array">
43+
<item name="provider" xsi:type="string">localStorage</item>
44+
</item>
45+
</item>
46+
</argument>
47+
</container>
3848
<columnsControls name="columns_controls"/>
3949
<filters name="listing_filters">
4050
<filterSelect name="store_id">

app/code/Magento/CatalogInventory/Ui/DataProvider/Product/Form/Modifier/AdvancedInventory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ private function prepareMeta()
213213
'dataScope' => 'qty',
214214
'validation' => [
215215
'validate-number' => true,
216-
'validate-digits' => true,
216+
'validate-integer' => true,
217217
'less-than-equals-to' => StockDataFilter::MAX_QTY_VALUE,
218218
],
219219
'imports' => [

app/code/Magento/CatalogInventory/view/adminhtml/ui_component/product_form.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
<item name="dataScope" xsi:type="string">quantity_and_stock_status.qty</item>
9696
<item name="validation" xsi:type="array">
9797
<item name="validate-number" xsi:type="boolean">true</item>
98-
<item name="validate-digits" xsi:type="boolean">true</item>
98+
<item name="validate-integer" xsi:type="boolean">true</item>
9999
<item name="less-than-equals-to" xsi:type="number">99999999</item>
100100
</item>
101101
<item name="sortOrder" xsi:type="number">200</item>

app/code/Magento/CatalogInventory/view/adminhtml/web/js/components/qty-validator-changer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ define([
1919
handleChanges: function (value) {
2020
var isDigits = value !== 1;
2121

22-
this.validation['validate-number'] = !isDigits;
23-
this.validation['validate-digits'] = isDigits;
22+
this.validation['validate-integer'] = isDigits;
2423
this.validation['less-than-equals-to'] = isDigits ? 99999999 : 99999999.9999;
2524
this.validate();
2625
}

0 commit comments

Comments
 (0)