Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
c599fe5
Fixed set template syntax issue
gelanivishal May 21, 2018
b9e3fd4
Removed comma(,) from translate attribute
yogeshsuhagiya Mar 26, 2018
f98290d
Fixed typo error
gelanivishal May 28, 2018
c29d674
Remove the redundant code, add field comment translation
dmytro-ch Jun 1, 2018
eb2fbc7
ENGCOM-1761: [Backport] Removed comma(,) from translate attribute #15616
magento-engcom-team Jun 1, 2018
c633d16
set correct annotation
sanjay-wagento May 30, 2018
5575523
#12820 - Wrong annotation in _toOptionArray - magento/framework/Data/…
sanjay-wagento May 19, 2018
fc97524
ENGCOM-1761: [Backport] Removed comma(,) from translate attribute #15616
Jun 2, 2018
8934726
ENGCOM-1777: [Backport] set correct annotation #15668
magento-engcom-team Jun 2, 2018
06448d2
ENGCOM-1778: [Backport] Wrong annotation in _toOptionArray - magento/…
magento-engcom-team Jun 2, 2018
89cbe87
ENGCOM-1779: [Backport] Fixed set template syntax issue #15657
magento-engcom-team Jun 2, 2018
e64925b
ENGCOM-1780: [Backport] Fixed typo error #15648
magento-engcom-team Jun 2, 2018
678d48b
ENGCOM-1780: [Backport] Fixed typo error #15648
Jun 2, 2018
9b751a0
ENGCOM-1779: [Backport] Fixed set template syntax issue #15657
Jun 2, 2018
8139931
ENGCOM-1778: [Backport] Wrong annotation in _toOptionArray - magento/…
Jun 2, 2018
6272a99
ENGCOM-1777: [Backport] set correct annotation #15668
Jun 2, 2018
97d6047
Fix HTML syntax in report.phtml error template
dmytro-ch Jun 3, 2018
cff1bc9
Remove extra space from trnslation file
May 28, 2018
bb00a25
Typo correction
May 25, 2018
7d703e2
Fix dynamical assigned property as it wasn't assigned to an existing one
dmytro-ch Jun 3, 2018
f986bb0
Use stored value of method instead of calling again
dmytro-ch Jun 3, 2018
57fed5a
hitesh-wagento Jun 1, 2018
c7a48d5
ENGCOM-1786: [Backport] Fix HTML syntax in report.phtml error templat…
magento-engcom-team Jun 3, 2018
3bbc940
ENGCOM-1788: [Backport] Remove extra space and format the code in tra…
magento-engcom-team Jun 3, 2018
51f4fdf
ENGCOM-1792: [Backport] Typo correction #15708
magento-engcom-team Jun 3, 2018
e0310c4
ENGCOM-1794: [Backport] Fix dynamical assigned property as it wasn't …
magento-engcom-team Jun 3, 2018
867b726
ENGCOM-1795: [Backport] Use stored value of method instead of calling…
magento-engcom-team Jun 3, 2018
648a86c
ENGCOM-1796: [Backport] [Resolved : Menu widget submenu alignment #78…
magento-engcom-team Jun 3, 2018
24caaf9
ENGCOM-1796: [Backport] [Resolved : Menu widget submenu alignment #78…
Jun 4, 2018
e822cb7
ENGCOM-1795: [Backport] Use stored value of method instead of calling…
Jun 4, 2018
eae6483
ENGCOM-1794: [Backport] Fix dynamical assigned property as it wasn't …
Jun 4, 2018
b1630bf
ENGCOM-1792: [Backport] Typo correction #15708
Jun 4, 2018
ae6cef3
ENGCOM-1788: [Backport] Remove extra space and format the code in tra…
Jun 4, 2018
ec2d51c
ENGCOM-1786: [Backport] Fix HTML syntax in report.phtml error templat…
Jun 4, 2018
7529c64
ENGCOM-1780: [Backport] Fixed typo error #15648
Jun 4, 2018
79613c0
:arrows_clockwise: [EngCom] Public Pull Requests - 2.1-develop
Jun 4, 2018
a17909c
forgot to add lowercase conversion on grouped product assignation aft…
jalogut May 18, 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
2 changes: 1 addition & 1 deletion app/code/Magento/Backend/Block/Dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Dashboard extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'dashboard/index.phtml';
protected $_template = 'Magento_Backend::dashboard/index.phtml';

/**
* @return void
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Backend/Block/Dashboard/Graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class Graph extends \Magento\Backend\Block\Dashboard\AbstractDashboard
/**
* @var string
*/
protected $_template = 'dashboard/graph.phtml';
protected $_template = 'Magento_Backend::dashboard/graph.phtml';

/**
* Adminhtml dashboard data
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Backend/Block/Dashboard/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Grid extends \Magento\Backend\Block\Widget\Grid\Extended
/**
* @var string
*/
protected $_template = 'dashboard/grid.phtml';
protected $_template = 'Magento_Backend::dashboard/grid.phtml';

/**
* Setting default for every grid on dashboard
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Backend/Block/Dashboard/Sales.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Sales extends \Magento\Backend\Block\Dashboard\Bar
/**
* @var string
*/
protected $_template = 'dashboard/salebar.phtml';
protected $_template = 'Magento_Backend::dashboard/salebar.phtml';

/**
* @var \Magento\Framework\Module\Manager
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Backend/Block/Dashboard/Totals.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Totals extends \Magento\Backend\Block\Dashboard\Bar
/**
* @var string
*/
protected $_template = 'dashboard/totalbar.phtml';
protected $_template = 'Magento_Backend::dashboard/totalbar.phtml';

/**
* @var \Magento\Framework\Module\Manager
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Backend/Block/Page/Copyright.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ class Copyright extends \Magento\Backend\Block\Template
*
* @var string
*/
protected $_template = 'page/copyright.phtml';
protected $_template = 'Magento_Backend::page/copyright.phtml';
}
2 changes: 1 addition & 1 deletion app/code/Magento/Backend/Block/Page/Footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Footer extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'page/footer.phtml';
protected $_template = 'Magento_Backend::page/footer.phtml';

/**
* @var \Magento\Framework\App\ProductMetadataInterface
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Backend/Block/Page/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Header extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'page/header.phtml';
protected $_template = 'Magento_Backend::page/header.phtml';

/**
* Backend data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Fieldset extends \Magento\Backend\Block\Template implements \Magento\Frame
/**
* @var string
*/
protected $_template = 'store/switcher/form/renderer/fieldset.phtml';
protected $_template = 'Magento_Backend::store/switcher/form/renderer/fieldset.phtml';

/**
* Retrieve an element
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Element extends \Magento\Backend\Block\Widget\Form\Renderer\Fieldset\Eleme
/**
* @var string
*/
protected $_template = 'store/switcher/form/renderer/fieldset/element.phtml';
protected $_template = 'Magento_Backend::store/switcher/form/renderer/fieldset/element.phtml';

/**
* Retrieve an element
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 @@ -238,7 +238,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
32 changes: 21 additions & 11 deletions app/code/Magento/Config/Block/System/Config/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,15 +366,6 @@ protected function _initElement(
$data = $this->getConfigValue($path);
}
}
$fieldRendererClass = $field->getFrontendModel();
if ($fieldRendererClass) {
$fieldRenderer = $this->_layout->getBlockSingleton($fieldRendererClass);
} else {
$fieldRenderer = $this->_fieldRenderer;
}

$fieldRenderer->setForm($this);
$fieldRenderer->setConfigData($this->_configData);

$elementName = $this->_generateElementName($field->getPath(), $fieldPrefix);
$elementId = $this->_generateElementId($field->getPath($fieldPrefix));
Expand Down Expand Up @@ -420,7 +411,7 @@ protected function _initElement(
if ($field->hasOptions()) {
$formField->setValues($field->getOptions());
}
$formField->setRenderer($fieldRenderer);
$formField->setRenderer($this->resolveFieldRenderer($field));
}

/**
Expand Down Expand Up @@ -684,7 +675,7 @@ protected function _getAdditionalElementTypes()
}

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

Expand Down Expand Up @@ -791,4 +782,23 @@ private function getAppConfigDataValue($path)
}
return $data->getData($path);
}

/**
* @param \Magento\Config\Model\Config\Structure\Element\Field $field
* @return Form\Field|\Magento\Framework\View\Element\BlockInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
private function resolveFieldRenderer(\Magento\Config\Model\Config\Structure\Element\Field $field)
{
$fieldRendererClass = $field->getFrontendModel();
if ($fieldRendererClass) {
$fieldRenderer = $this->_layout->getBlockSingleton($fieldRendererClass);
} else {
$fieldRenderer = $this->_fieldRenderer;
}

$fieldRenderer->setForm($this);
$fieldRenderer->setConfigData($this->_configData);
return $fieldRenderer;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ protected function _insertData()
}

/**
* Get new supper attribute id.
* Get new super attribute id.
*
* @return int
*/
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Customer/Model/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ public function setAfterAuthUrl($url)
}

/**
* Reset core session hosts after reseting session ID
* Reset core session hosts after resetting session ID
*
* @return $this
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function saveData()
}
$scope = $this->_entityModel->getRowScope($rowData);
if (Product::SCOPE_DEFAULT == $scope) {
$productData = $newSku[$rowData[Product::COL_SKU]];
$productData = $newSku[strtolower($rowData[Product::COL_SKU])];
} else {
$colAttrSet = Product::COL_ATTR_SET;
$rowData[$colAttrSet] = $productData['attr_set_code'];
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
6 changes: 3 additions & 3 deletions app/code/Magento/Sales/etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@
<comment>We'll use the default error above if you leave this empty.</comment>
</field>
</group>
<group id="dashboard" translate="label,comment" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0">
<group id="dashboard" translate="label" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Dashboard</label>
<field id="use_aggregated_data" translate="label" sortOrder="10" type="select" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
<field id="use_aggregated_data" translate="label comment" sortOrder="10" type="select" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
<label>Use Aggregated Data</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Improves dashboard performance but provides non-realtime data.</comment>
</field>
</group>
<group id="orders" translate="label,comment" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="0">
<group id="orders" translate="label" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Orders Cron Settings</label>
<field id="delete_pending_after" translate="label" type="text" sortOrder="6" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Pending Payment Order Lifetime (minutes)</label>
Expand Down
8 changes: 5 additions & 3 deletions app/code/Magento/Webapi/Model/Soap/Fault.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class Fault
const NODE_DETAIL_WRAPPER = 'GenericFault';
/**#@-*/

/** @var string */
/**
* @var string
*/
protected $_soapFaultCode;

/**
Expand Down Expand Up @@ -114,7 +116,7 @@ public function __construct(
\Magento\Framework\Locale\ResolverInterface $localeResolver,
State $appState
) {
$this->_soapCode = $exception->getOriginator();
$this->_soapFaultCode = $exception->getOriginator();
$this->_parameters = $exception->getDetails();
$this->_wrappedErrors = $exception->getErrors();
$this->stackTrace = $exception->getStackTrace() ?: $exception->getTraceAsString();
Expand Down Expand Up @@ -194,7 +196,7 @@ public function getDetails()
*/
public function getSoapCode()
{
return $this->_soapCode;
return $this->_soapFaultCode;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ public function fetchItem()
/**
* Overridden to use _idFieldName by default.
*
* @param null $valueField
* @param string|null $valueField
* @param string $labelField
* @param array $additional
* @return array
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/Magento/Framework/Stdlib/DateTime/Timezone.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null)
* @param string|\DateTimeInterface $date
* @param int $dateType
* @param int $timeType
* @param null $locale
* @param null $timezone
* @param string|null $locale
* @param string|null $timezone
* @param string|null $pattern
* @return string
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null);
* @param string|\DateTimeInterface $date
* @param int $dateType
* @param int $timeType
* @param null $locale
* @param null $timezone
* @param string|null $locale
* @param string|null $timezone
* @param string|null $pattern
* @return string
*/
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 @@ -35,25 +35,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="<?php echo $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="<?php echo $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="<?php echo $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"><?php echo $this->postData['comment'] ?></textarea>
</div>
</div>
Expand Down