(regression) Add/Edit Scheduled Reminders page does not load if CiviContribute is disabled
Works on 5.63, not on 5.64. Hard to bisect because getDefaultEntity()
becomes a required method somewhere along the line.
Easy to replicate:
- Disable CiviContribute.
- Try to create a scheduled reminder.
You'll get this error:
Error: Class "Civi\Api4\ContributionRecur" not found in CRM_Contribute_Tokens->getRelatedTokens() (line 59 of /home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Contribute/Tokens.php).
Seems related to #4123 (closed) (pinging @seamuslee) but that was merged in 5.63 and it seems fine in 5.63.
I'd throw a conditional into CRM_Contribute_Tokens->getRelatedTokens()
to fix this but given all the work on moving to extensions, I suspect this is a deeper issue that needs looking at.