Skip to content

Commit f611963

Browse files
author
Oleksandr Karpenko
committed
Merge branch 'MAGETWO-42988' of https://github.corp.magento.com/magento-south/magento2ce into MAGETWO-42988
2 parents 9891ed3 + a698766 commit f611963

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* Customer model
2323
*
2424
* @method int getWebsiteId() getWebsiteId()
25-
* @method Customer setWebsiteId(int)
25+
* @method Customer setWebsiteId($value)
2626
* @method int getStoreId() getStoreId()
2727
* @method string getEmail() getEmail()
2828
* @method ResourceCustomer _getResource()
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
namespace Magento\Ui\Component\Form\Element;
8+
9+
class MultiSelect extends Select
10+
{
11+
const NAME = 'multiselect';
12+
13+
const DEFAULT_SIZE = 6;
14+
15+
/**
16+
* @inheritDoc
17+
*/
18+
public function prepare()
19+
{
20+
$config['size'] = self::DEFAULT_SIZE;
21+
$this->setData('config', array_replace_recursive((array)$this->getData('config'), $config));
22+
parent::prepare();
23+
}
24+
}

app/code/Magento/Ui/view/base/ui_component/etc/definition.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
</item>
200200
</argument>
201201
</select>
202-
<multiselect class="Magento\Ui\Component\Form\Element\Select">
202+
<multiselect class="Magento\Ui\Component\Form\Element\MultiSelect">
203203
<argument name="data" xsi:type="array">
204204
<item name="template" xsi:type="string">ui/form/element/multiselect</item>
205205
<item name="js_config" xsi:type="array">
@@ -209,6 +209,9 @@
209209
<item name="elementTmpl" xsi:type="string">ui/form/element/multiselect</item>
210210
</item>
211211
</item>
212+
<item name="config" xsi:type="array">
213+
<item name="size" xsi:type="string">6</item>
214+
</item>
212215
</argument>
213216
</multiselect>
214217
<textarea class="Magento\Ui\Component\Form\Element\Textarea">

0 commit comments

Comments
 (0)