IMS works fine if I only do a single operation (i.e. move one or more items from the left column to the right, or vice versa).

If I try to do more than one thing (i.e. move some items across to the right, and then some items back to the left), the new changes are not recorded so the node gets saved with only the original change in place.

It seems like the state of the form is recorded after the first change and then not updated again - even though the widget displays items correctly in the left and right boxes - regardless of how many changes you make.

Comments

SME Pals created an issue. See original summary.

SME Pals’s picture

Title: Only first change is recorded by IMS. After that form element not submitted » Only first change is recorded by IMS. After that form element not updated
SME Pals’s picture

Issue summary: View changes
wolffereast’s picture

Do you have reordering enabled? And if so is it possible to test if the error persists when reordering is disabled?

SME Pals’s picture

I didn't have it enabled.

I enabled it and retested it. It now appears to work correctly. The items left in the right hand box are the items recorded in the node.

wolffereast’s picture

Huh, I was having the opposite problem when testing earlier. When I have reordering enabled I am able to add things to the field and re order them but I'm not able to remove elements. Can you verify that you are able to remove elements from the field?

sushilkr’s picture

I am facing same issue it works first time when i edit node and use arrow to move after save it is not going to update.
No error is showing in javascript and console.

merilainen’s picture

Confirmed, enabling reording seems to make it work better, so that I can add new items, but still cannot remove any items.

sv’s picture

I guess this #2907326: IMS doesn't save selected values after any ajax event on the form submit issue is related and should resolve current one.

seborigin’s picture

It seems to only partially solve the issue. Applying the patch allow now to add/remove items after a first edit but it doesn't seem to fix the re-ordering items.

dmitrii’s picture

Status: Active » Postponed (maintainer needs more info)

Should be fixed in latest 8.x-1.x-dev
Please take a looksee

nileema19’s picture

Latest development version ( 8.x-1.x-dev) has fixed the adding and removing items (i.e. move one or more items from the left column to the right, or vice versa).
Reordering issue also fixed but the order of items are not getting saved -https://www.drupal.org/project/improved_multi_select/issues/3007612#comm...

dmitrii’s picture

Status: Postponed (maintainer needs more info) » Fixed

Closing this issue.
All remaining work will be tracked in https://www.drupal.org/project/improved_multi_select/issues/3007612

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.