forked from civicrm/civicrm-core
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide precautionary handling for theoretical error scenario.
While testing payments I hit a bug where I tried to add a payment to a contribution with no financial items. I never managed to replicate it again or determine how the payment came to be in that state but it's been playing in my mind that people could get fatal errors if the financial_items don't exist and dealing with those as regression reports will very tough. So my plan is - for 5.20 add this extra routine to create it if it does not exist - use this mechanism + more digging to figure out how legit an issue it is civicrm#15706 - in future releases 'get noisy' about having to create them if they don't exist - eventually remove this routine
- Loading branch information
1 parent
fe5aa2e
commit e5e642d
Showing
3 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters