Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
82d0491
Merge pull request #6 from magento/2.3-develop
julienanquetil Apr 26, 2018
d5c3952
#14063 - Wrong invoice prefix in multistore setup due to default stor…
sanjay-wagento May 19, 2018
8719c1b
ENGCOM-1773: [Forwardport] Wrong invoice prefix in multistore setup d…
magento-engcom-team Jun 2, 2018
04583ac
fixed Submitting search form (mini) with enter key fires event handle…
amjad-codilar May 19, 2018
09459f6
Fix HTML syntax in report.phtml error template
dmytro-ch Jun 3, 2018
1ad9c5c
Remove extra space from trnslation file
May 28, 2018
fbb81c9
Merge pull request #11 from magento/2.3-develop
julienanquetil Jun 3, 2018
6301ed4
[Forwardport] Fix #13415 : Duplicated elements id
julienanquetil Jun 3, 2018
83b3587
Use stored value of method instead of calling same method again.
May 25, 2018
82d254b
Use stored value of method instead of calling same method again.
May 25, 2018
42f3f2e
Revert "Use stored value of method instead of calling same method aga…
May 25, 2018
31e49bc
Typo correction
May 25, 2018
14bf8af
hitesh-wagento Jun 1, 2018
2bd1c37
ENGCOM-1787: [Forwardport] Fix HTML syntax in report.phtml error temp…
magento-engcom-team Jun 3, 2018
ecfc0ee
ENGCOM-1789: [Forwardport] Remove extra space and format the code in …
magento-engcom-team Jun 3, 2018
a147ed5
ENGCOM-1790: [Forwardport] Use stored value of method instead of call…
magento-engcom-team Jun 3, 2018
f8e26c9
ENGCOM-1791: [Forwardport] Typo correction #15707
magento-engcom-team Jun 3, 2018
6736223
ENGCOM-1793: [Forwardport] [Resolved : Menu widget submenu alignment …
magento-engcom-team Jun 3, 2018
b2fd343
Fixed return type of getImageData
rogyar Jun 3, 2018
eaa585d
Refactor javascript code of button split widget
amittiwari024 May 19, 2018
d91fe7c
ENGCOM-1801: Fixed return type of wishlist's getImageData in DocBlock…
magento-engcom-team Jun 4, 2018
a9f5a1d
fix: support multiple minisearch widget instances
May 17, 2018
840398a
ENGCOM-1803: [Forwardport] fix: support multiple minisearch widget in…
magento-engcom-team Jun 4, 2018
a8ef6ad
ENGCOM-1807: [Forwardport] Refactor javascript code of button split …
magento-engcom-team Jun 4, 2018
f9a4abf
ENGCOM-1814: [Forwardport] Fix #13415 : Duplicated elements id #15705
magento-engcom-team Jun 4, 2018
4989af7
ENGCOM-1815: [Forwardport] fixed Submitting search form (mini) with e…
magento-engcom-team Jun 4, 2018
6711694
Refactor JavsScript for UrlRewrite module edit page
patelnimesh1988 May 22, 2018
3e21edd
Added language translation in template files
RahulKachhadia May 19, 2018
27c3e85
ENGCOM-1817: [Forwardport] Refactor JavsScript for UrlRewrite module …
magento-engcom-team Jun 4, 2018
604618a
ENGCOM-1820: [Forwardport] Added language translation in template fil…
magento-engcom-team Jun 4, 2018
8128913
Refactor javscript for customer logout
patelnimesh1988 May 18, 2018
2922332
Fixed Invalid quote mark issue
patelnimesh1988 May 18, 2018
037b97c
Move buttons definition to separate file
jissereitsma May 14, 2018
fdb70a0
Change relative path to absolute path for testability
jissereitsma May 14, 2018
c70ba5b
Add strict mode
jissereitsma May 14, 2018
a71b178
Fix missing comma
jissereitsma May 14, 2018
526911c
Make sure colons are in right place
jissereitsma May 15, 2018
4b27bd8
Fix missing column because of eslint
jissereitsma May 15, 2018
d61fbe7
ENGCOM-1821: [Forwardport] Move buttons definition to separate file #…
magento-engcom-team Jun 4, 2018
24e246d
ENGCOM-1822: [Forwardport] Refactor JavsScript for customer logout #1…
magento-engcom-team Jun 4, 2018
bcdd8f2
Function unnecessarily called multiple time
May 19, 2018
ecc5f7b
[Forwardport] [Resolved : Menu widget submenu alignment]
hitesh-wagento Jun 4, 2018
9fc35ee
ENGCOM-1823: [Forwardport] Function unnecessarily called multiple tim…
magento-engcom-team Jun 4, 2018
15180ed
ENGCOM-1824: [Forwardport] [Resolved : Menu widget submenu alignment]…
magento-engcom-team Jun 4, 2018
8acafcf
ENGCOM-1824: [Forwardport] [Resolved : Menu widget submenu alignment]…
VladimirZaets Jun 4, 2018
a66e2c5
ENGCOM-1823: [Forwardport] Function unnecessarily called multiple tim…
VladimirZaets Jun 4, 2018
a4c2f2e
ENGCOM-1822: [Forwardport] Refactor JavsScript for customer logout #1…
VladimirZaets Jun 4, 2018
6e34dc4
ENGCOM-1821: [Forwardport] Move buttons definition to separate file #…
VladimirZaets Jun 4, 2018
d9d34f0
ENGCOM-1820: [Forwardport] Added language translation in template fil…
VladimirZaets Jun 4, 2018
7ba1dd2
ENGCOM-1817: [Forwardport] Refactor JavsScript for UrlRewrite module …
VladimirZaets Jun 4, 2018
49a6ced
ENGCOM-1815: [Forwardport] fixed Submitting search form (mini) with e…
VladimirZaets Jun 4, 2018
b7d7a06
ENGCOM-1814: [Forwardport] Fix #13415 : Duplicated elements id #15705
VladimirZaets Jun 4, 2018
3530214
ENGCOM-1807: [Forwardport] Refactor javascript code of button split …
VladimirZaets Jun 4, 2018
bad90b4
ENGCOM-1803: [Forwardport] fix: support multiple minisearch widget in…
VladimirZaets Jun 4, 2018
424948c
ENGCOM-1801: Fixed return type of wishlist's getImageData in DocBlock…
VladimirZaets Jun 4, 2018
c665b89
ENGCOM-1793: [Forwardport] [Resolved : Menu widget submenu alignment …
VladimirZaets Jun 4, 2018
a3cc95e
ENGCOM-1791: [Forwardport] Typo correction #15707
VladimirZaets Jun 4, 2018
4c7a33d
ENGCOM-1790: [Forwardport] Use stored value of method instead of call…
VladimirZaets Jun 4, 2018
55395a6
ENGCOM-1789: [Forwardport] Remove extra space and format the code in …
VladimirZaets Jun 4, 2018
6ffb562
ENGCOM-1787: [Forwardport] Fix HTML syntax in report.phtml error temp…
VladimirZaets Jun 4, 2018
da8b1c2
ENGCOM-1773: [Forwardport] Wrong invoice prefix in multistore setup d…
VladimirZaets Jun 4, 2018
3409fba
[EngCom] Public Pull Requests - 2.3-develop
magento-engcom-team Jun 4, 2018
0ad656d
:arrows_clockwise: [EngCom] Public Pull Requests - 2.3-develop
Jun 5, 2018
0f23ed7
Add missing table aliases to fields mapping for Customer Group filter…
Jun 5, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
<?php endif; ?>
</div>

<script>
require(['jquery'], function($){
$('.actions-split')
.on('click.splitDefault', '.action-default', function() {
$(this).siblings('.dropdown-menu').find('.item-default').trigger('click');
});
});
<script type="text/x-magento-init">
{
".actions-split": {
"Magento_Ui/js/grid/controls/button/split": {}
}
}
</script>

Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ $ccType = $block->getInfoData('cc_type');
name="payment[is_active_payment_token_enabler]"
class="admin__control-checkbox"/>
<label class="label" for="<?= /* @noEscape */ $code ?>_vault">
<span><?= $block->escapeHtml('Save for later use.') ?></span>
<span><?= $block->escapeHtml(__('Save for later use.')) ?></span>
</label>
</div>
<?php endif; ?>
Expand Down
6 changes: 1 addition & 5 deletions app/code/Magento/Captcha/i18n/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ Forms,Forms
"Number of Symbols","Number of Symbols"
"Please specify 8 symbols at the most. Range allowed (e.g. 3-5)","Please specify 8 symbols at the most. Range allowed (e.g. 3-5)"
"Symbols Used in CAPTCHA","Symbols Used in CAPTCHA"
"
Please use only letters (a-z or A-Z) or numbers (0-9) in this field. No spaces or other characters are allowed.<br />Similar looking characters (e.g. ""i"", ""l"", ""1"") decrease chance of correct recognition by customer.
","
Please use only letters (a-z or A-Z) or numbers (0-9) in this field. No spaces or other characters are allowed.<br />Similar looking characters (e.g. ""i"", ""l"", ""1"") decrease chance of correct recognition by customer.
"
"Please use only letters (a-z or A-Z) or numbers (0-9) in this field. No spaces or other characters are allowed.<br />Similar looking characters (e.g. ""i"", ""l"", ""1"") decrease chance of correct recognition by customer.","Please use only letters (a-z or A-Z) or numbers (0-9) in this field. No spaces or other characters are allowed.<br />Similar looking characters (e.g. ""i"", ""l"", ""1"") decrease chance of correct recognition by customer."
"Case Sensitive","Case Sensitive"
"Enable CAPTCHA on Storefront","Enable CAPTCHA on Storefront"
"CAPTCHA for ""Create user"" and ""Forgot password"" forms is always enabled if chosen.","CAPTCHA for ""Create user"" and ""Forgot password"" forms is always enabled if chosen."
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public function getChildrenIds($parentId, $required = true)
}

/**
* Retrieve parent ids array by requered child
* Retrieve parent ids array by required child
*
* @param int|array $childId
* @return array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
*/
?>

<?php $block->getCurrencySymbolsData();?>

<form id="currency-symbols-form" action="<?= /* @escapeNotVerified */ $block->getFormActionUrl() ?>" method="post">
<input name="form_key" type="hidden" value="<?= /* @escapeNotVerified */ $block->getFormKey() ?>" />
<fieldset class="admin__fieldset">
Expand Down
12 changes: 6 additions & 6 deletions app/code/Magento/Customer/etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -353,19 +353,19 @@
<virtualType name="Magento\Customer\Model\Api\SearchCriteria\CollectionProcessor\GroupFilterProcessor" type="Magento\Framework\Api\SearchCriteria\CollectionProcessor\FilterProcessor">
<arguments>
<argument name="fieldMapping" xsi:type="array">
<item name="code" xsi:type="string">customer_group_code</item>
<item name="id" xsi:type="string">customer_group_id</item>
<item name="tax_class_name" xsi:type="string">class_name</item>
<item name="code" xsi:type="string">main_table.customer_group_code</item>
<item name="id" xsi:type="string">main_table.customer_group_id</item>
<item name="tax_class_name" xsi:type="string">tax_class_table.class_name</item>
</argument>
</arguments>
</virtualType>
<!-- @api -->
<virtualType name="Magento\Customer\Model\Api\SearchCriteria\CollectionProcessor\GroupSortingProcessor" type="Magento\Framework\Api\SearchCriteria\CollectionProcessor\SortingProcessor">
<arguments>
<argument name="fieldMapping" xsi:type="array">
<item name="code" xsi:type="string">customer_group_code</item>
<item name="id" xsi:type="string">customer_group_id</item>
<item name="tax_class_name" xsi:type="string">class_name</item>
<item name="code" xsi:type="string">main_table.customer_group_code</item>
<item name="id" xsi:type="string">main_table.customer_group_id</item>
<item name="tax_class_name" xsi:type="string">tax_class_table.class_name</item>
</argument>
<argument name="defaultOrders" xsi:type="array">
<item name="id" xsi:type="string">ASC</item>
Expand Down
17 changes: 8 additions & 9 deletions app/code/Magento/Customer/view/frontend/templates/logout.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
/** @var \Magento\Framework\View\Element\Template $block */
?>
<p><?= $block->escapeHtml(__('You have signed out and will go to our homepage in 5 seconds.')) ?></p>
<script>
require([
"jquery",
"mage/mage"
], function($){

$($.mage.redirect("<?= $block->escapeJs($block->escapeUrl($block->getUrl())) ?>", "assign", 5000));

});
<script type="text/x-magento-init">
{
"*": {
"Magento_Customer/js/logout-redirect": {
"url": "<?= $block->escapeJs($block->escapeUrl($block->getUrl())) ?>"
}
}
}
</script>
15 changes: 15 additions & 0 deletions app/code/Magento/Customer/view/frontend/web/js/logout-redirect.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

define([
'jquery',
'mage/mage'
], function ($) {
'use strict';

return function (data) {
$($.mage.redirect(data.url, 'assign', 5000));
};
});
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,24 @@
<div class="gift-options-content">
<fieldset class="fieldset">
<div class="field field-to">
<label for="gift-message-whole-to" class="label">
<label data-bind="attr: {for: 'gift-message-whole-to-' + index }" class="label">
<span data-bind="i18n: 'To:'"></span>
</label>
<div class="control">
<input type="text"
id="gift-message-whole-to"
class="input-text"
data-bind="value: getObservable('recipient')">
data-bind="value: getObservable('recipient'), attr: { id: 'gift-message-whole-to-' + index }">
</div>
</div>

<div class="field field-from">
<label for="gift-message-whole-from" class="label">
<label data-bind="attr: {for: 'gift-message-whole-from-' + index }" class="label">
<span data-bind="i18n: 'From:'"></span>
</label>
<div class="control">
<input type="text"
id="gift-message-whole-from"
class="input-text"
data-bind="value: getObservable('sender')">
data-bind="value: getObservable('sender'), attr: { id: 'gift-message-whole-from-' + index }">
</div>
</div>
<div class="field text">
Expand All @@ -46,7 +44,6 @@
</div>
</div>
</fieldset>

</div>
</div>
<!-- /ko -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
$partners = $block->getPartners();
?>
<?php if ($partners) : ?>
<?php foreach ($block->getPartners() as $partner) : ?>
<?php foreach ($partners as $partner) : ?>
<div class="partner">
<img
class="partner-image"
Expand Down
2 changes: 2 additions & 0 deletions app/code/Magento/Multishipping/i18n/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,5 @@ Options,Options
"Review Order","Review Order"
"Select Shipping Method","Select Shipping Method"
"We received your order!","We received your order!"
"Ship to:","Ship to:"
"Error:","Error:"
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $orderIds = $block->getOrderIds();
<?php $shippingAddress = $block->getOrderShippingAddress($orderId); ?>
<div class="shipping-item">
<?php if ($shippingAddress) : ?>
<span class="shipping-label"><?= $block->escapeHtml('Ship to:'); ?></span>
<span class="shipping-label"><?= $block->escapeHtml(__('Ship to:')); ?></span>
<span class="shipping-address">
<?= $block->escapeHtml($block->formatOrderShippingAddress($shippingAddress)); ?>
</span>
Expand Down Expand Up @@ -65,7 +65,7 @@ $orderIds = $block->getOrderIds();
<dl class="shipping-item">
<dt class="shipping-block">
<?php if ($block->isShippingAddress($address)) : ?>
<span class="shipping-label"><?= $block->escapeHtml('Ship to:'); ?></span>
<span class="shipping-label"><?= $block->escapeHtml(__('Ship to:')); ?></span>
<span class="shipping-address">
<?= $block->escapeHtml($block->formatQuoteShippingAddress($address)); ?>
</span>
Expand All @@ -76,7 +76,7 @@ $orderIds = $block->getOrderIds();
<?php endif; ?>
</dt>
<dd class="error-block">
<span class="error-label"><?= $block->escapeHtml('Error:'); ?></span>
<span class="error-label"><?= $block->escapeHtml(__('Error:')); ?></span>
<span class="error-description">
<?= /* @noEscape */ $block->getAddressError($address); ?>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<?php $shippingAddress = $block->getCheckoutData()->getOrderShippingAddress($orderId); ?>
<div class="shipping-item">
<?php if ($shippingAddress) : ?>
<span class="shipping-label"><?= $block->escapeHtml('Ship to:'); ?></span>
<span class="shipping-label"><?= $block->escapeHtml(__('Ship to:')); ?></span>
<span class="shipping-address">
<?= $block->escapeHtml(
$block->getCheckoutData()->formatOrderShippingAddress($shippingAddress)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ $ccExpMonth = $block->getInfoData('cc_exp_month');
name="payment[is_active_payment_token_enabler]"
class="admin__control-checkbox"/>
<label class="admin__field-label" for="<?= /* @noEscape */ $code ?>_vault">
<span><?= $block->escapeHtml('Save for later use.') ?></span>
<span><?= $block->escapeHtml(__('Save for later use.')) ?></span>
</label>
</div>
<?php endif; ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,15 @@ protected function _beforeSave(\Magento\Framework\Model\AbstractModel $object)
{
/** @var \Magento\Sales\Model\AbstractModel $object */
if ($object instanceof EntityInterface && $object->getIncrementId() == null) {
$store = $object->getStore();
$storeId = $store->getId();
if ($storeId === null) {
$storeId = $store->getGroup()->getDefaultStoreId();
}
$object->setIncrementId(
$this->sequenceManager->getSequence(
$object->getEntityType(),
$object->getStore()->getGroup()->getDefaultStoreId()
$storeId
)->getNextValue()
);
}
Expand Down
3 changes: 2 additions & 1 deletion app/code/Magento/Search/view/frontend/web/form-mini.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ define([
this.autoComplete = $(this.options.destinationSelector);
this.searchForm = $(this.options.formSelector);
this.submitBtn = this.searchForm.find(this.options.submitBtn)[0];
this.searchLabel = $(this.options.searchLabel);
this.searchLabel = this.searchForm.find(this.options.searchLabel);
this.isExpandable = this.options.isExpandable;

_.bindAll(this, '_onKeyDown', '_onPropertyChange', '_onSubmit');
Expand Down Expand Up @@ -226,6 +226,7 @@ define([

case $.ui.keyCode.ENTER:
this.searchForm.trigger('submit');
e.preventDefault();
break;

case $.ui.keyCode.DOWN:
Expand Down
12 changes: 4 additions & 8 deletions app/code/Magento/Ui/view/base/web/js/form/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@
*/
define([
'jquery',
'underscore'
], function ($, _) {
'underscore',
'Magento_Ui/js/form/adapter/buttons'
], function ($, _, buttons) {
'use strict';

var buttons = {
'reset': '#reset',
'save': '#save',
'saveAndContinue': '#save_and_continue'
},
selectorPrefix = '',
var selectorPrefix = '',
eventPrefix;

/**
Expand Down
17 changes: 17 additions & 0 deletions app/code/Magento/Ui/view/base/web/js/form/adapter/buttons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

/**
* @api
*/
define(function () {
'use strict';

return {
'reset': '#reset',
'save': '#save',
'saveAndContinue': '#save_and_continue'
};
});
17 changes: 8 additions & 9 deletions app/code/Magento/UrlRewrite/view/adminhtml/templates/edit.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@
?>
<?= $block->getChildHtml() ?>
<?php if ($block->getChildBlock('form')): ?>
<script>
require([
'jquery',
'mage/backend/form',
'mage/backend/validation'
], function($){
$('#edit_form').form()
.validation({validationUrl: '<?= $block->escapeUrl($block->getValidationUrl()) ?>'});
});
<script type="text/x-magento-init">
{
"#edit_form": {
"Magento_UrlRewrite/js/url-rewrite-validation" : {
"url": "<?= $block->escapeUrl($block->getValidationUrl()) ?>"
}
}
}
</script>
<?php endif; ?>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

define([
'jquery',
'mage/backend/form',
'mage/backend/validation'
], function ($) {
'use strict';

return function (data, element) {

$(element).form().validation({
validationUrl: data.url
});
};
});
2 changes: 1 addition & 1 deletion app/code/Magento/Wishlist/CustomerData/Wishlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ protected function getItemData(\Magento\Wishlist\Model\Item $wishlistItem)
* Retrieve product image data
*
* @param \Magento\Catalog\Model\Product $product
* @return \Magento\Catalog\Block\Product\Image
* @return array
* @SuppressWarnings(PHPMD.NPathComplexity)
*/
protected function getImageData($product)
Expand Down
4 changes: 4 additions & 0 deletions lib/web/css/source/lib/_navigation.less
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@
.lib-css(border-top, none);
}

li.level1 {
position: relative;
}

.level0 {
.lib-css(margin, @_nav-level0-item-margin);
display: inline-block;
Expand Down
8 changes: 4 additions & 4 deletions pub/errors/default/report.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,25 @@
</div>
<div class="field lastname required">
<label for="lastname" class="label">Last Name</label>
<div class=control">
<div class="control">
<input type="text" name="lastname" id="lastname" value="<?= $this->postData['lastName'] ?>" title="Last Name" class="required-entry input-text" />
</div>
</div>
<div class="field email required">
<label for="email_address" class="label">Email Address</label>
<div class=control">
<div class="control">
<input type="text" name="email" id="email_address" value="<?= $this->postData['email'] ?>" title="Email Address" class="validate-email required-entry input-text" />
</div>
</div>
<div class="field telephone">
<label for="telephone" class="label">Telephone</label>
<div class=control">
<div class="control">
<input type="text" name="telephone" id="telephone" value="<?= $this->postData['telephone'] ?>" title="Telephone" class="input-text" />
</div>
</div>
<div class="field comment">
<label for="comment" class="label">Comment</label>
<div class=control">
<div class="control">
<textarea name="comment" cols="5" rows="3" class="textarea"><?= $this->postData['comment'] ?></textarea>
</div>
</div>
Expand Down