stable

Clone or download

Read-only

Tracker admin can define a color for none value

part of story #14824 change color of "none" value How to test: - have a selectbox defined as required => you can't save a color for none value - have a selectbox defined as not required => you can select a color (legacy or tlp) for none value If you check "required" and define a color for none, the color won't be saved. If you already have a color for none value and you check "required", the color associated to none will be erased in db. I'll deal with UI (adding disable property and title) for color selection in a dedicated patch. Change-Id: I12d48cda1abadbc60863dcb73baafa4dda4c4464

Modified Files

Name
A plugins/tracker/include/Tracker/FormElement/Field/ListFields/Bind/BoundDecoratorEditor.php +77 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ListFields/Bind/BoundDecoratorSaver.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List.class.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind.class.php +4 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_BindDecorator.class.php +2 −20 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind_Static.class.php +20 −44 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/View/Admin/Field/ListFields/BindValuesAdder.php +54 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/dao/Tracker_FormElement_Field_List_BindDecoratorDao.class.php +34 −10 Go to diff View file
A plugins/tracker/tests/unit/Tracker/FormElement/Field/ListFields/Bind/BoundDecoratorEditorTest.php +96 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/Field/ListFields/Bind/BoundDecoratorSaverTest.php +2 −2 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/Tracker_FormElement_Field_List_Bind_StaticTest.php +56 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/FormElement/View/Admin/Field/ListFields/BindValuesAdderTest.php +76 −0 Go to diff View file