stable
Clone or download
Read-only
request #13395: Masschange is always in error when tracker have field dependencies on field list
How to reproduce: Have two different field with a field dependency field A --> field B Submit a new artifact field A should not have any value field B should have a value example "my custom value" Perform a mass change on the created artifact, masschange won't be possible and following error will be displayed: field A() -> field B(my custom value) Unable to update artifact 15072 Global rules are not respected The following artifacts were not updated (15072) With this patch, no more error, masschange is performed. Change-Id: I3acfa591b36e24db399b2e6dc3370f86eb1d7913
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/tracker/include/Tracker/FormElement/Field/ListFields/Bind/BindStaticValueUnchanged.php | +45 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElementFactory.class.php | +1 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List.class.php | +7 | −6 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Selectbox.class.php | +4 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/MasschangeDataValueExtractor.class.php | +34 | −10 | Go to diff View file |
M | plugins/tracker/include/Tracker/MasschangeUpdater.class.php | +170 | −18 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Tracker_Report.class.php | +10 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/Rule/Tracker_RuleFactory.class.php | +3 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Rule/Tracker_RulesManager.class.php | +1 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Tracker.class.php | +0 | −45 | Go to diff View file |
A | plugins/tracker/phpunit/Tracker/MasschangeDataValueExtractorTest.php | +79 | −0 | Go to diff View file |
A | plugins/tracker/phpunit/Tracker/MasschangeUpdaterTest.php | +235 | −0 | Go to diff View file |
D | plugins/tracker/tests/MasschangeDataValueExtractorTest.php | +0 | −60 | Go to diff View file |
D | plugins/tracker/tests/MasschangeUpdaterTest.php | +0 | −72 | Go to diff View file |
M | plugins/tracker/www/scripts/TrackerFieldDependencies.js | +11 | −1 | Go to diff View file |