ScheduledReminders - Add option list for limit_to column and fix type
authorcolemanw <coleman@civicrm.org>
Wed, 19 Jul 2023 21:10:32 +0000 (17:10 -0400)
committercolemanw <coleman@civicrm.org>
Thu, 20 Jul 2023 19:10:04 +0000 (15:10 -0400)
commitfb1f1dec8fce6661d669597dfa73733bd0f8a710
tree6d53e99dbed724613fb9546a65415708ada16f1e
parent86658d7fd45616fd5e5438da23b96f2f513900b2
ScheduledReminders - Add option list for limit_to column and fix type

Before: limit_to column is 'boolean' in the metadata and has no option list, but
effectively it has 3 options: NULL, '0' and '1'.

After: Changed type to 'integer', added pseudoconstant, and renamed the '0' option
to '2' so it isn't as easily confused with NULL.
17 files changed:
CRM/Activity/ActionMapping.php
CRM/Admin/Form/ScheduleReminders.php
CRM/Contribute/ActionMapping/ByType.php
CRM/Core/BAO/ActionSchedule.php
CRM/Core/BAO/RecurringEntity.php
CRM/Core/DAO/ActionSchedule.php
CRM/Core/Form/RecurringEntity.php
CRM/Core/SelectValues.php
CRM/Event/ActionMapping.php
CRM/Upgrade/Incremental/php/FiveSixtyFive.php
CRM/Upgrade/Incremental/sql/5.65.alpha1.mysql.tpl
Civi/ActionSchedule/RecipientBuilder.php
templates/CRM/Admin/Form/ScheduleReminders.tpl
tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php
tests/phpunit/Civi/ActionSchedule/AbstractMappingTest.php
tests/phpunit/api/v3/JobTest.php
xml/schema/Core/ActionSchedule.xml