Skip to content

Commit 79613c0

Browse files
author
Stanislav Idolov
authored
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - #15616: [Backport] Removed comma(,) from translate attribute (by @dmytro-ch) - #15648: [Backport] Fixed typo error (by @vgelani) - #15657: [Backport] Fixed set template syntax issue (by @vgelani) - #15669: [Backport] Wrong annotation in _toOptionArray - magento/framework/Data/� (by @vgelani) - #15668: [Backport] set correct annotation (by @vgelani) - #15714: [Backport] [Resolved : Menu widget submenu alignment #7897] (by @dmytro-ch) - #15711: [Backport] Use stored value of method instead of calling same method again. (by @dmytro-ch) - #15710: [Backport] Fix dynamical assigned property as it wasn't assigned to an existing one (by @dmytro-ch) - #15708: [Backport] Typo correction (by @dmytro-ch) - #15702: [Backport] Remove extra space and format the code in translation file (by @dmytro-ch) - #15700: [Backport] Fix HTML syntax in report.phtml error template (by @dmytro-ch) Fixed GitHub Issues: - #15601: Wrong annotation in formatDateTime - lib/internal/Magento/Framework/Stdlib/DateTime/TimezoneInterface.php (reported by @sanjay-wagento) has been fixed in #15669 by @vgelani in 2.1-develop branch Related commits: 1. 5575523 - #15601: Wrong annotation in formatDateTime - lib/internal/Magento/Framework/Stdlib/DateTime/TimezoneInterface.php (reported by @sanjay-wagento) has been fixed in #15668 by @vgelani in 2.1-develop branch Related commits: 1. c633d16 - #7897: Menu widget submenu alignment (reported by @slackerzz) has been fixed in #15714 by @dmytro-ch in 2.1-develop branch Related commits: 1. 57fed5a
2 parents 6103b6b + 7529c64 commit 79613c0

File tree

23 files changed

+57
-45
lines changed

23 files changed

+57
-45
lines changed

app/code/Magento/Backend/Block/Dashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Dashboard extends \Magento\Backend\Block\Template
1818
/**
1919
* @var string
2020
*/
21-
protected $_template = 'dashboard/index.phtml';
21+
protected $_template = 'Magento_Backend::dashboard/index.phtml';
2222

2323
/**
2424
* @return void

app/code/Magento/Backend/Block/Dashboard/Graph.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class Graph extends \Magento\Backend\Block\Dashboard\AbstractDashboard
9090
/**
9191
* @var string
9292
*/
93-
protected $_template = 'dashboard/graph.phtml';
93+
protected $_template = 'Magento_Backend::dashboard/graph.phtml';
9494

9595
/**
9696
* Adminhtml dashboard data

app/code/Magento/Backend/Block/Dashboard/Grid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Grid extends \Magento\Backend\Block\Widget\Grid\Extended
1515
/**
1616
* @var string
1717
*/
18-
protected $_template = 'dashboard/grid.phtml';
18+
protected $_template = 'Magento_Backend::dashboard/grid.phtml';
1919

2020
/**
2121
* Setting default for every grid on dashboard

app/code/Magento/Backend/Block/Dashboard/Sales.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Sales extends \Magento\Backend\Block\Dashboard\Bar
1616
/**
1717
* @var string
1818
*/
19-
protected $_template = 'dashboard/salebar.phtml';
19+
protected $_template = 'Magento_Backend::dashboard/salebar.phtml';
2020

2121
/**
2222
* @var \Magento\Framework\Module\Manager

app/code/Magento/Backend/Block/Dashboard/Totals.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Totals extends \Magento\Backend\Block\Dashboard\Bar
1717
/**
1818
* @var string
1919
*/
20-
protected $_template = 'dashboard/totalbar.phtml';
20+
protected $_template = 'Magento_Backend::dashboard/totalbar.phtml';
2121

2222
/**
2323
* @var \Magento\Framework\Module\Manager

app/code/Magento/Backend/Block/Page/Copyright.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ class Copyright extends \Magento\Backend\Block\Template
1515
*
1616
* @var string
1717
*/
18-
protected $_template = 'page/copyright.phtml';
18+
protected $_template = 'Magento_Backend::page/copyright.phtml';
1919
}

app/code/Magento/Backend/Block/Page/Footer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Footer extends \Magento\Backend\Block\Template
1515
/**
1616
* @var string
1717
*/
18-
protected $_template = 'page/footer.phtml';
18+
protected $_template = 'Magento_Backend::page/footer.phtml';
1919

2020
/**
2121
* @var \Magento\Framework\App\ProductMetadataInterface

app/code/Magento/Backend/Block/Page/Header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Header extends \Magento\Backend\Block\Template
1818
/**
1919
* @var string
2020
*/
21-
protected $_template = 'page/header.phtml';
21+
protected $_template = 'Magento_Backend::page/header.phtml';
2222

2323
/**
2424
* Backend data

app/code/Magento/Backend/Block/Store/Switcher/Form/Renderer/Fieldset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Fieldset extends \Magento\Backend\Block\Template implements \Magento\Frame
2323
/**
2424
* @var string
2525
*/
26-
protected $_template = 'store/switcher/form/renderer/fieldset.phtml';
26+
protected $_template = 'Magento_Backend::store/switcher/form/renderer/fieldset.phtml';
2727

2828
/**
2929
* Retrieve an element

app/code/Magento/Backend/Block/Store/Switcher/Form/Renderer/Fieldset/Element.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Element extends \Magento\Backend\Block\Widget\Form\Renderer\Fieldset\Eleme
2121
/**
2222
* @var string
2323
*/
24-
protected $_template = 'store/switcher/form/renderer/fieldset/element.phtml';
24+
protected $_template = 'Magento_Backend::store/switcher/form/renderer/fieldset/element.phtml';
2525

2626
/**
2727
* Retrieve an element

app/code/Magento/Captcha/i18n/en_US.csv

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ Forms,Forms
2020
"Number of Symbols","Number of Symbols"
2121
"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)"
2222
"Symbols Used in CAPTCHA","Symbols Used in CAPTCHA"
23-
"
24-
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.
25-
","
26-
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.
27-
"
23+
"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."
2824
"Case Sensitive","Case Sensitive"
2925
"Enable CAPTCHA on Storefront","Enable CAPTCHA on Storefront"
3026
"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."

app/code/Magento/Catalog/Model/Product/Type/AbstractType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function getChildrenIds($parentId, $required = true)
238238
}
239239

240240
/**
241-
* Retrieve parent ids array by requered child
241+
* Retrieve parent ids array by required child
242242
*
243243
* @param int|array $childId
244244
* @return array

app/code/Magento/Config/Block/System/Config/Form.php

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -366,15 +366,6 @@ protected function _initElement(
366366
$data = $this->getConfigValue($path);
367367
}
368368
}
369-
$fieldRendererClass = $field->getFrontendModel();
370-
if ($fieldRendererClass) {
371-
$fieldRenderer = $this->_layout->getBlockSingleton($fieldRendererClass);
372-
} else {
373-
$fieldRenderer = $this->_fieldRenderer;
374-
}
375-
376-
$fieldRenderer->setForm($this);
377-
$fieldRenderer->setConfigData($this->_configData);
378369

379370
$elementName = $this->_generateElementName($field->getPath(), $fieldPrefix);
380371
$elementId = $this->_generateElementId($field->getPath($fieldPrefix));
@@ -420,7 +411,7 @@ protected function _initElement(
420411
if ($field->hasOptions()) {
421412
$formField->setValues($field->getOptions());
422413
}
423-
$formField->setRenderer($fieldRenderer);
414+
$formField->setRenderer($this->resolveFieldRenderer($field));
424415
}
425416

426417
/**
@@ -684,7 +675,7 @@ protected function _getAdditionalElementTypes()
684675
}
685676

686677
/**
687-
* Temporary moved those $this->getRequest()->getParam('blabla') from the code accross this block
678+
* Temporary moved those $this->getRequest()->getParam('blabla') from the code across this block
688679
* to getBlala() methods to be later set from controller with setters
689680
*/
690681

@@ -791,4 +782,23 @@ private function getAppConfigDataValue($path)
791782
}
792783
return $data->getData($path);
793784
}
785+
786+
/**
787+
* @param \Magento\Config\Model\Config\Structure\Element\Field $field
788+
* @return Form\Field|\Magento\Framework\View\Element\BlockInterface
789+
* @throws \Magento\Framework\Exception\LocalizedException
790+
*/
791+
private function resolveFieldRenderer(\Magento\Config\Model\Config\Structure\Element\Field $field)
792+
{
793+
$fieldRendererClass = $field->getFrontendModel();
794+
if ($fieldRendererClass) {
795+
$fieldRenderer = $this->_layout->getBlockSingleton($fieldRendererClass);
796+
} else {
797+
$fieldRenderer = $this->_fieldRenderer;
798+
}
799+
800+
$fieldRenderer->setForm($this);
801+
$fieldRenderer->setConfigData($this->_configData);
802+
return $fieldRenderer;
803+
}
794804
}

app/code/Magento/ConfigurableImportExport/Model/Import/Product/Type/Configurable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ protected function _insertData()
604604
}
605605

606606
/**
607-
* Get new supper attribute id.
607+
* Get new super attribute id.
608608
*
609609
* @return int
610610
*/

app/code/Magento/Customer/Model/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ public function setAfterAuthUrl($url)
552552
}
553553

554554
/**
555-
* Reset core session hosts after reseting session ID
555+
* Reset core session hosts after resetting session ID
556556
*
557557
* @return $this
558558
*/

app/code/Magento/Marketplace/view/adminhtml/templates/partners.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
$partners = $block->getPartners();
1212
?>
1313
<?php if ($partners) : ?>
14-
<?php foreach ($block->getPartners() as $partner) : ?>
14+
<?php foreach ($partners as $partner) : ?>
1515
<div class="partner">
1616
<img
1717
class="partner-image"

app/code/Magento/Sales/etc/adminhtml/system.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@
106106
<comment>We'll use the default error above if you leave this empty.</comment>
107107
</field>
108108
</group>
109-
<group id="dashboard" translate="label,comment" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0">
109+
<group id="dashboard" translate="label" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0">
110110
<label>Dashboard</label>
111-
<field id="use_aggregated_data" translate="label" sortOrder="10" type="select" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
111+
<field id="use_aggregated_data" translate="label comment" sortOrder="10" type="select" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
112112
<label>Use Aggregated Data</label>
113113
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
114114
<comment>Improves dashboard performance but provides non-realtime data.</comment>
115115
</field>
116116
</group>
117-
<group id="orders" translate="label,comment" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="0">
117+
<group id="orders" translate="label" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="0">
118118
<label>Orders Cron Settings</label>
119119
<field id="delete_pending_after" translate="label" type="text" sortOrder="6" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
120120
<label>Pending Payment Order Lifetime (minutes)</label>

app/code/Magento/Webapi/Model/Soap/Fault.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ class Fault
3939
const NODE_DETAIL_WRAPPER = 'GenericFault';
4040
/**#@-*/
4141

42-
/** @var string */
42+
/**
43+
* @var string
44+
*/
4345
protected $_soapFaultCode;
4446

4547
/**
@@ -114,7 +116,7 @@ public function __construct(
114116
\Magento\Framework\Locale\ResolverInterface $localeResolver,
115117
State $appState
116118
) {
117-
$this->_soapCode = $exception->getOriginator();
119+
$this->_soapFaultCode = $exception->getOriginator();
118120
$this->_parameters = $exception->getDetails();
119121
$this->_wrappedErrors = $exception->getErrors();
120122
$this->stackTrace = $exception->getStackTrace() ?: $exception->getTraceAsString();
@@ -194,7 +196,7 @@ public function getDetails()
194196
*/
195197
public function getSoapCode()
196198
{
197-
return $this->_soapCode;
199+
return $this->_soapFaultCode;
198200
}
199201

200202
/**

lib/internal/Magento/Framework/Data/Collection/AbstractDb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ public function fetchItem()
627627
/**
628628
* Overridden to use _idFieldName by default.
629629
*
630-
* @param null $valueField
630+
* @param string|null $valueField
631631
* @param string $labelField
632632
* @param array $additional
633633
* @return array

lib/internal/Magento/Framework/Stdlib/DateTime/Timezone.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null)
245245
* @param string|\DateTimeInterface $date
246246
* @param int $dateType
247247
* @param int $timeType
248-
* @param null $locale
249-
* @param null $timezone
248+
* @param string|null $locale
249+
* @param string|null $timezone
250250
* @param string|null $pattern
251251
* @return string
252252
*/

lib/internal/Magento/Framework/Stdlib/DateTime/TimezoneInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null);
125125
* @param string|\DateTimeInterface $date
126126
* @param int $dateType
127127
* @param int $timeType
128-
* @param null $locale
129-
* @param null $timezone
128+
* @param string|null $locale
129+
* @param string|null $timezone
130130
* @param string|null $pattern
131131
* @return string
132132
*/

lib/web/css/source/lib/_navigation.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,10 @@
305305
.lib-css(border-top, none);
306306
}
307307

308+
li.level1 {
309+
position: relative;
310+
}
311+
308312
.level0 {
309313
.lib-css(margin, @_nav-level0-item-margin);
310314
display: inline-block;

pub/errors/default/report.phtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,25 @@
3535
</div>
3636
<div class="field lastname required">
3737
<label for="lastname" class="label">Last Name</label>
38-
<div class=control">
38+
<div class="control">
3939
<input type="text" name="lastname" id="lastname" value="<?php echo $this->postData['lastName'] ?>" title="Last Name" class="required-entry input-text" />
4040
</div>
4141
</div>
4242
<div class="field email required">
4343
<label for="email_address" class="label">Email Address</label>
44-
<div class=control">
44+
<div class="control">
4545
<input type="text" name="email" id="email_address" value="<?php echo $this->postData['email'] ?>" title="Email Address" class="validate-email required-entry input-text" />
4646
</div>
4747
</div>
4848
<div class="field telephone">
4949
<label for="telephone" class="label">Telephone</label>
50-
<div class=control">
50+
<div class="control">
5151
<input type="text" name="telephone" id="telephone" value="<?php echo $this->postData['telephone'] ?>" title="Telephone" class="input-text" />
5252
</div>
5353
</div>
5454
<div class="field comment">
5555
<label for="comment" class="label">Comment</label>
56-
<div class=control">
56+
<div class="control">
5757
<textarea name="comment" cols="5" rows="3" class="textarea"><?php echo $this->postData['comment'] ?></textarea>
5858
</div>
5959
</div>

0 commit comments

Comments
 (0)