From 1110a8a7ea31084825d02275b0fa3820aa666df0 Mon Sep 17 00:00:00 2001 From: Rens Wolters Date: Thu, 4 Nov 2021 15:56:23 +0100 Subject: [PATCH] [FEATURE] - Adds source model on saving of multiselect attribute --- app/code/Magento/Catalog/Helper/Product.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/Catalog/Helper/Product.php b/app/code/Magento/Catalog/Helper/Product.php index 73b5e4af78d41..9bc118998c037 100644 --- a/app/code/Magento/Catalog/Helper/Product.php +++ b/app/code/Magento/Catalog/Helper/Product.php @@ -351,7 +351,10 @@ public function getAttributeInputTypes($inputType = null) * @todo specify there all relations for properties depending on input type */ $inputTypes = [ - 'multiselect' => ['backend_model' => \Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend::class], + 'multiselect' => [ + 'backend_model' => \Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend::class, + 'source_model' => \Magento\Eav\Model\Entity\Attribute\Source\Table::class + ], 'boolean' => ['source_model' => \Magento\Eav\Model\Entity\Attribute\Source\Boolean::class], ];