in uc_credit.module
if (strlen($form['cc_policy']) > 0) {
$output .= '<tr><td colspan="2">'. variable_get('uc_credit_policy', '')
.'</td></tr>';
That variable is not set until the settings page is saved, so therefor no message shows up until someone wanders to that page and hits save.
This has never come up before because you need to visit and save that page to enter the keys folder path before the credit card card form would even show. We are setting the keys folder path in a .install file and thus that form never gets saved setting the variable.
Patch coming soon
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 580266_credit_policy.patch | 717 bytes | Island Usurper |
| #1 | uc_credit.patch | 715 bytes | crashtest_ |
Comments
Comment #1
crashtest_ commentedI am not really sure the best way to test this, but I believe it works from what I could test.
Comment #2
Island Usurper commentedI expect it works too, when you're setting the keys folder on install. However, I'm not so sure about adding the description class to it. That kind of means we should do that for all of the payment methods. I guess that's not a big deal as far as it goes, but it doesn't really belong in this patch.
Comment #3
Island Usurper commentedCommitted this patch without the description class.