diff --git a/app/code/Magento/Customer/Model/Customer.php b/app/code/Magento/Customer/Model/Customer.php index 53cd1bcc12a9af2777b734a6af62f65bce1c50af..4516a33962aeaf0dc49c9494185833f9b70da240 100644 --- a/app/code/Magento/Customer/Model/Customer.php +++ b/app/code/Magento/Customer/Model/Customer.php @@ -22,7 +22,7 @@ use Magento\Framework\Indexer\StateInterface; * Customer model * * @method int getWebsiteId() getWebsiteId() - * @method Customer setWebsiteId(int) + * @method Customer setWebsiteId($value) * @method int getStoreId() getStoreId() * @method string getEmail() getEmail() * @method ResourceCustomer _getResource() diff --git a/app/code/Magento/Ui/Component/Form/Element/MultiSelect.php b/app/code/Magento/Ui/Component/Form/Element/MultiSelect.php new file mode 100644 index 0000000000000000000000000000000000000000..93fd7f600e0f3a95032164f880a0cc46ba3b437a --- /dev/null +++ b/app/code/Magento/Ui/Component/Form/Element/MultiSelect.php @@ -0,0 +1,24 @@ +<?php +/** + * Copyright © 2015 Magento. All rights reserved. + * See COPYING.txt for license details. + */ + +namespace Magento\Ui\Component\Form\Element; + +class MultiSelect extends Select +{ + const NAME = 'multiselect'; + + const DEFAULT_SIZE = 6; + + /** + * @inheritDoc + */ + public function prepare() + { + $config['size'] = self::DEFAULT_SIZE; + $this->setData('config', array_replace_recursive((array)$this->getData('config'), $config)); + parent::prepare(); + } +} diff --git a/app/code/Magento/Ui/view/base/ui_component/etc/definition.xml b/app/code/Magento/Ui/view/base/ui_component/etc/definition.xml index b8485998fec512fafd41dc1aa3dcf606a16b6e7e..090c3a9e277a5a1766d28d2dd804c87f44d38311 100755 --- a/app/code/Magento/Ui/view/base/ui_component/etc/definition.xml +++ b/app/code/Magento/Ui/view/base/ui_component/etc/definition.xml @@ -199,7 +199,7 @@ </item> </argument> </select> - <multiselect class="Magento\Ui\Component\Form\Element\Select"> + <multiselect class="Magento\Ui\Component\Form\Element\MultiSelect"> <argument name="data" xsi:type="array"> <item name="template" xsi:type="string">ui/form/element/multiselect</item> <item name="js_config" xsi:type="array"> @@ -209,6 +209,9 @@ <item name="elementTmpl" xsi:type="string">ui/form/element/multiselect</item> </item> </item> + <item name="config" xsi:type="array"> + <item name="size" xsi:type="string">6</item> + </item> </argument> </multiselect> <textarea class="Magento\Ui\Component\Form\Element\Textarea">