Ordering in dual-listbox in combination with a non-existing object / ordering in combination with a create
alextreme opened this issue · comments
Discussed today with Leerlevels (a project @JostCrow and I use this widget for).
The ordering within the dual-listbox works as expected, however not in combination with a create-form as the object does not yet exist (the ordering is done via AJAX calls, but for this to work the object already needs to exists server-side). As such after creating the object the order which was configured is lost. The order only works in combination with an update/modification-form.
A possible solution for this would be to submit the order of the objects in the list-box when doing the POST, for instance via a hidden field / additional POST argument.