stable

Clone or download

Read-only

request #24140 Selectbox based on users should check if default value is valid

When we update the default value of a selectbox bind on users, we shouldn't keep the default values if it's not a valid value. How to test : have a project with 2 (or more) users : user_1 and user_2 have a group_1 without user_2 have a tracker selectbox bind on users Choose project_member as possible choice in the selectbox Choose user_2 as default values and update edit again the field and choose group_1, do not change the default values, and save. --> user_2 is still the default values (even if it's not visible) Change-Id: Icdf05f51f9a74646b55f9df358ab3f0eae0154f3

Modified Files

Name
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind.php +12 −3 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind_Static.php +0 −5 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind_Users.php +7 −3 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/Tracker_FormElement_Field_List_BindTest.php +33 −4 Go to diff View file