Problem/Motivation
When retrieving payment results and there is a payment entity with no payment execution status the isCompleted() function triggers an exception which is blocking from retrieving valid entities.
Error: Call to a member function isCompleted() on bool in Drupal\payment\Entity\Payment\PaymentAccessControlHandler->checkAccess() (line 55 of modules/contrib/payment/src/Entity/Payment/PaymentAccessControlHandler.php).
Proposed resolution
Add extra check for getPaymentExecutionResult() returning FALSE.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3408147-execution-status-error-2.patch | 787 bytes | tommiecrawford |
| #3 | 3408147-execution-status-error.patch | 1.01 KB | tommiecrawford |
Issue fork payment-3408147
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3408147-error-when-there
compare
Comments
Comment #3
tommiecrawford commentedCreated a patch with a extra check if getPaymentExecutionResult() is returning FALSE.
Comment #4
tommiecrawford commentedAnother patch with no formatting changes.