-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-select for Product edit not saving values other than first selection on Save #4822
Comments
have you created attribute using script or backed? |
It was migrated from Magento 1. I have not checked if this problem exists with new attributes created in Magento 2. |
may be it problem with migration Plase check source model and backend model for same. |
Fixed, go to eav_attribute table, search you multiselect attribute and change in "backend_model" column NULL value with this value: Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend, clear cache and reindex and ty. |
I'm seeing this problem too, albeit with Customer.. Created using a script properly. Can include source if requested. I'm using the Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend method. No values are persisting for me, but the attribute is saving the option_id to the database in the customer_entity_ table. I've tried text and varchar. Both save but will not populate the dropdown. |
@simon-zhu |
Hi Simon, used version is: Magento 2.0.7, PHP 5.6 and now multiselect works fine. This issue is coming afther migrate customers, order, etc from Magento 1.9 to Magento 2. |
I was having the same problem. Migrated a site from 1.9.x to 2 and multiselect attributes have null for backend_model. saving the attributes would not change the values. SQL to change would be: Replace "your_attribute_code" with the attribute code of the attribute that is giving you trouble. |
Magento 2.1.3 still reproducible. Multi-select attribute not being saved. Although |
Fixed For me magento2.1.0, go to eav_attibute table, search you multiselect attibute and change in "backend_model" column NULL value with this value: Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend, clear cache and reindex and ty. |
@AbdulKadir-Agoliya I tried that, but didn't help. The only workaround I found is to use the Mass action attributes update. Then it saves the change of multi-select attribute |
2.1.4 and the problem still exist |
I have this issue on not saving multiselect in a product. This happens to me if I have 1 configurable product from other attribute set that does not have this attribute in it. |
Hello, @simon-zhu. We were not able to reproduce Your on neither of develop versions for Magento2. (2.0.15, 2.1.7, 2.2.0). Please if You still can reproduce this issue on either of versions let us know. Thanks for Your reporting. |
Hello Magento Team,
|
Tested on 2.1.9 I'm having the same issue. Even when creating a new product attribute of type multiselect in the backend, the problem occurs: when selecting an option in the multiselect on a product, the value doesn't get saved. As @AgentGod explained, there's a detour of making this to work:
|
@duckchip |
hello @duckchip |
Hi @AbdulKadir-Agoliya |
Still having the problem on 2.1.11 |
Update: This was fixed by... |
I have this exact issue on Magento 2.2.5 |
I Found Solution after R&D On Magento database. |
same issue, magento 2.2.4 |
hello #mariamghalleb |
I had to change |
@AbdulKadir-Agoliya that column is not NULL by default it has Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend. |
Same here. I still have to delete my related products in order to make it work |
I still have the problem in 2.1.9 and this is beginneng to get frustrated.
This works only then the dropdown in the frond-end goes away. The solutions of changing the "backend_model" does not work for me, but is there someone who can help me with a solution |
Dit you find a solution? Because i'm in 2.1.15 and i've tried all these methods and nothing works |
same issue. Magento 2.2.6 Multi-select attribute not being saved. Although I also don't have any related products but still facing an issue |
After long hind and seek with database, I came to know that it was the migration issue from m1 to Magento 2. The following list of items has fixed the issue for me. backend_type = text php bin/magento c:c php bin/magento c:f Hope this will fix it out for you. |
You also need to reindex |
I am experiencing an issue similar to issue #4346. If I try to select multiple items for a multi select attribute from the product edit view (in this case, the attribute is Bolt Pattern), only the first one is actually saved to database when I press Save.
![screen shot 2016-06-01 at 4 02 32 pm](https://cloud.githubusercontent.com/assets/14226557/15728593/4e7cfe1e-2812-11e6-9fd6-60a220c99b7f.png)
However, if I go to the database and manually add the value for the attribute in the
catalog_product_entity_varchar
table, it shows up correctly when I reload the page in admin panelbut if I press Save, again it only selects the first one and all the others are removed from database as well.
The text was updated successfully, but these errors were encountered: