stable

Clone or download

Read-only

Refresh list-picker on field dependencies updates

story #16647 manage dependencies between arbitrary number of SB & MSB, static binding How to test: - Set up a tracker containing selectboxes and multiselectboxes - Define dependencies among them - In the artifact view - In creation mode --> When you change the value of a source field, then the target fields have their content updated - In edition mode --> when you toggle the edition mode of a field, you toggle its target fields too - In the artifact modal --> Changing the value of a source list-picker will update the target list-pickers Change-Id: Id57201f51dc965cf796b7770abdb2292f3704a31

Modified Files

Name
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.class.php +26 −2 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Checkbox.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List.class.php +13 −4 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Radiobutton.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Rule/Tracker_RulesManager.class.php +12 −0 Go to diff View file
M plugins/tracker/scripts/artifact/list-fields.test.ts +43 −9 Go to diff View file
M plugins/tracker/scripts/artifact/list-fields.ts +29 −2 Go to diff View file
M plugins/tracker/scripts/legacy/TrackerFieldDependencies.js +14 −3 Go to diff View file
M plugins/tracker/themes/default/css/style.scss +5 −3 Go to diff View file
M src/scripts/list-picker/po/fr_FR.po +4 −1 Go to diff View file
M src/scripts/list-picker/src/events/EventManager.test.ts +58 −36 Go to diff View file
M src/scripts/list-picker/src/events/EventManager.ts +4 −3 Go to diff View file
A src/scripts/list-picker/src/events/ListOptionsChangesObserver.test.ts +106 −0 Go to diff View file
A src/scripts/list-picker/src/events/ListOptionsChangesObserver.ts +62 −0 Go to diff View file
D src/scripts/list-picker/src/helpers/list-picker-items-helper.test.ts +0 −45 Go to diff View file
D src/scripts/list-picker/src/helpers/list-picker-items-helper.ts +0 −33 Go to diff View file
M src/scripts/list-picker/src/helpers/static-list-helper.test.ts +11 −1 Go to diff View file
M src/scripts/list-picker/src/helpers/static-list-helper.ts +5 −0 Go to diff View file
A src/scripts/list-picker/src/items/ItemsMapManager.test.ts +64 −0 Go to diff View file
A src/scripts/list-picker/src/items/ItemsMapManager.ts +49 −0 Go to diff View file
M src/scripts/list-picker/src/list-picker.ts +21 −7 Go to diff View file
M src/scripts/list-picker/src/navigation/KeyboardNavigationManager.test.ts +16 −25 Go to diff View file
M src/scripts/list-picker/src/renderers/DropdownContentRenderer.test.ts +88 −7 Go to diff View file
M src/scripts/list-picker/src/renderers/DropdownContentRenderer.ts +34 −11 Go to diff View file
M src/scripts/list-picker/src/selection/MultipleSelectionManager.test.ts +45 −7 Go to diff View file
M src/scripts/list-picker/src/selection/MultipleSelectionManager.ts +47 −21 Go to diff View file
M src/scripts/list-picker/src/selection/SingleSelectionManager.test.ts +99 −15 Go to diff View file
M src/scripts/list-picker/src/selection/SingleSelectionManager.ts +51 −7 Go to diff View file
M src/scripts/list-picker/src/test-helpers/select-box-options-generator.ts +3 −8 Go to diff View file
M src/scripts/list-picker/src/type.d.ts +3 −1 Go to diff View file