Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…to2ce into 2.3-develop
  • Loading branch information
magento-engcom-team committed Jun 12, 2019
2 parents 7fb1787 + 57ffbd9 commit fdfaed6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<a href="#"
onclick="tree.collapseTree(); return false;"><?= $block->escapeHtml(__('Collapse All')) ?></a>
<span class="separator">|</span> <a href="#"
onclick="tree.expandTree(); return false;"><?= $block->escapeHtml(_('Expand All')) ?></a>
onclick="tree.expandTree(); return false;"><?= $block->escapeHtml(__('Expand All')) ?></a>
<?php endif; ?>
</div>
<?php if ($block->getRoot()) :?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ $formName = $block->getFormName();
<label class="admin__field-label">
<span><?= $block->escapeHtml(__('Image Size')) ?></span>
</label>
<div class="admin__field-value" data-message="<?= $block->escapeHtmlAttr(_('{size}')) ?>"></div>
<div class="admin__field-value" data-message="<?= $block->escapeHtmlAttr(__('{size}')) ?>"></div>
</div>

<div class="admin__field admin__field-inline field-image-resolution" data-role="resolution">
Expand Down
19 changes: 0 additions & 19 deletions app/code/Magento/Theme/etc/system.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
use Magento\Framework\View\Element\UiComponent\ContextInterface;

/**
* Base abstract form element.
*
* phpcs:disable Magento2.Classes.AbstractApi
* @api
* @since 100.1.0
*/
Expand Down Expand Up @@ -59,7 +62,7 @@ public function prepare()
if (empty($config['rawOptions'])) {
$options = $this->convertOptionsValueToString($options);
}
$config['options'] = array_values(array_merge_recursive($config['options'], $options));
$config['options'] = array_values(array_replace_recursive($config['options'], $options));
}
$this->setData('config', (array)$config);
parent::prepare();
Expand All @@ -84,11 +87,14 @@ abstract public function getIsSelected($optionValue);
*/
protected function convertOptionsValueToString(array $options)
{
array_walk($options, function (&$value) {
if (isset($value['value']) && is_scalar($value['value'])) {
$value['value'] = (string)$value['value'];
array_walk(
$options,
static function (&$value) {
if (isset($value['value']) && is_scalar($value['value'])) {
$value['value'] = (string)$value['value'];
}
}
});
);
return $options;
}
}

0 comments on commit fdfaed6

Please sign in to comment.