stable

Clone or download

Read-only

request #14696: Bind_Ugroups does not properly check field dependencies

Given I have a Selectbox field "SOURCE" with values [A, B] And a Selectbox or Multiselectbox field TARGET bound to user groups with values [project_members], And there is a field dependency with: * SOURCE[A] => TARGET[project_members] * SOURCE[B] => TARGET[/None/] When there is an artifact with { SOURCE: A, TARGET: project_members } And we do a REST call PUT /artifact/:id with { values: [ { field_id: <SOURCE id>, bind_values_ids: [ <B id> ] }, { field_id: <TARGET id>, bind_values_ids: [ 100 ] } ] } Then we should not get any error. Change-Id: I7063a55e92a50b2cfaf17be821106c7415872ac8

Modified Files

Name
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind.class.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind_Ugroups.class.php +7 −8 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_MultiSelectbox.class.php +6 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Selectbox.class.php +27 −3 Go to diff View file
M plugins/tracker/phpunit/Tracker/FormElement/Tracker_FormElement_Field_MultiSelectboxTest.php +83 −0 Go to diff View file
M plugins/tracker/phpunit/Tracker/FormElement/Tracker_FormElement_Field_SelectboxTest.php +88 −18 Go to diff View file