Because in the admin interface of orders we can create orders without customer account, on all default rules in ubercart we need to set default rules to check if uc_order:email is not empty.
If we don't check this an error is logged:
Attempted to send an order e-mail with no recipient.
This is easy to fix if we set a condition to check for empty email in each *.rules_default.inc
I can do the patch if you think this should be commited to core...
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1433364-ignore-empty-email.patch | 1.13 KB | longwave |
Comments
Comment #1
longwaveInstead of adding a condition we could just remove this code from uc_order.rules.inc:
I am in two minds as to whether this test should be removed, or whether this error could actually be useful. Perhaps as a compromise it should be downgraded from WATCHDOG_ERROR, and linked back to the order in question so an administrator can see why this occurred?
Comment #2
SilviuChingaru commentedI think no error or warning should be logged because this should be the normal behavior of an order with "No account required". Right?
Comment #3
longwaveComment #4
SilviuChingaru commentedNormal behavior now. Thank you!
Comment #5
longwaveCommitted #3.