Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
Steps to reproduce the behavior and expected behavior
Fill any select2, submit the form, return backward and all the select2 are in an indeterminate state :
the field seems empty
the dropdown show a selected value
But the real select is not selected -> see joined picture
To come back to selected state, you have to unselect your selected value and reselect it.
Bug
Select2 doesn't support backward related issue : https://github.com/select2/select2/issues/4549
Dolibarr Version
ANY
Environment PHP
ANY
Environment Database
ANY
Steps to reproduce the behavior and expected behavior
Fill any select2, submit the form, return backward and all the select2 are in an indeterminate state : the field seems empty the dropdown show a selected value But the real select is not selected -> see joined picture
To come back to selected state, you have to unselect your selected value and reselect it.
Attached files