Closed (fixed)
Project:
Ubercart Optional Checkout Review
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2011 at 18:30 UTC
Updated:
13 Nov 2012 at 20:30 UTC
In uc_optional_checkout_review_form_submit(), the form is not called conform to the Drupal standards:
$wps_form = uc_paypal_wps_form($form_state, $order);
Instead, use drupal_retrieve_form() and drupal_prepare_form so hook_form_alter can be triggered:
$wps_form = drupal_retrieve_form('uc_paypal_wps_form', $form_state, $order);
drupal_prepare_form('uc_paypal_wps_form', $wps_form, $form_state, $order);
Find patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| uc_optional_checkout_review-drupal_prepare_form_missing.patch | 951 bytes | toemaz |
Comments
Comment #1
toemaz commentedChanging status.
Comment #2
bgm commentedThis worked for me, in 7.x-1.x.
Comment #3
bgm commentedCommitted to 6.x-1.x.