Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The form where admins can enter payments uses a custom theme function. This function doesn't output the form_build_id element - this makes it impossible to add ajax to the form, because it can't be retrieved from the cache.
Comment | File | Size | Author |
---|---|---|---|
#3 | 1540750-remove-theme-payment-form.patch | 3.18 KB | longwave |
#1 | 1540750-payment-form-build-id.patch | 597 bytes | wodenx |
Comments
Comment #1
wodenx CreditAttribution: wodenx commentedComment #2
longwaveI would like to drop that theme function entirely if possible, or at least call drupal_render_children($form) instead of explicitly rendering all fields.
Comment #3
longwaveThe attached patch uses Form API and CSS to replace the broken theme function.
Where are you using Ajax on this form?
Comment #4
wodenx CreditAttribution: wodenx commentedIn connection with http://drupal.org/project/uc_custom_payment, planning to allow admins to enter payment details when adding a custom payment, so need to add the form elements when that method is selected.
Comment #5
longwaveCommitted #3.