Active
Project:
Donate
Version:
6.x-1.0-alpha2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Dec 2010 at 01:08 UTC
Updated:
5 Jan 2011 at 02:28 UTC
Jump to comment: Most recent file
If you try to select "Full HTML" for the input type of the header or footer of a Donate form, then the form displays only "N/A" where it should display the content. This only appears to happen for non-admin/non-logged-in users.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | donate.inc_.patch | 1.61 KB | mikedickey |
| #1 | donate.inc_.patch | 1.5 KB | mikedickey |
Comments
Comment #1
mikedickey commentedIf you select an input format for the header, footer or confirmation message that is not "Filtered HTML", the module always displays "n/a" for that content to any users who do not have permission to CREATE content using said input format.
I believe this is caused by the the check_markup() function (inherently) being called with $check = TRUE. See these two related threads on the problem which is basically a bug in D6 (fixed in D7):
http://drupal.org/node/435520
http://drupal.org/node/458204
A patch that fixes this is attached.
Also included is a small patch that passes the total amount donated to the confirmation path URL as a "total=XXX" query parameter. This allows the confirmation page to know how much was donated, which is especially useful for analytics purposes (i.e. triggering a Google Analytics ecommerce event via a JS tag).
Comment #2
mikedickey commentedI revised the patch to also append a "total_paid" query variable to the redirect URL. This requires a corresponding patch that I submitted for pay_form. By having both the 'total' and 'total_paid' variables available to you "thank you page" you can display the "thank you" message if they match, and a "transaction failed" message if the transaction failed (total_paid will be zero).