Activity tasks - don't add invalid tasks
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 25 Jul 2021 22:04:35 +0000 (10:04 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 26 Jul 2021 00:57:46 +0000 (12:57 +1200)
commit20eb1cf7378ec801d5520eba9de5952075918f6c
treef609e2c873749f06bad447f672530a6b956d3e25
parent4ca50effca68f238fbbf2db39045b14ea53915cf
Activity tasks - don't add invalid tasks

Instead of 'handling the task code building invalid tasks - #20945' - this proposes to only attempt
to add a page if it is for a valid task. This keeps the grouchiness in the generic controller
to warn us of other mistakes.

This code is pretty fugly! However, it really is just called internally within this class.
CRM/Activity/StateMachine/Search.php
CRM/Activity/Task.php