In the below function, the $order variable is never passed or set. I'll upload a patch as soon as I wrap my head around the desired behavior.

/**
 * Create form for updating credit card details for recurring fee.
 */
function uc_recurring_authorizenet_cim_update_form($form_state, $rfid) {
  $form['rfid'] = array(
    '#type' => 'value',
    '#value' => $rfid,
  );
  $form['cc_data'] = array(
    '#type' => 'fieldset',
    '#title' => t('Credit card details'),
    '#theme' => 'uc_payment_method_credit_form',
    '#tree' => TRUE,
  );
  $form['cc_data'] += uc_payment_method_credit_form(array(), $order);
  unset($form['cc_data']['cc_policy']);
CommentFileSizeAuthor
#1 uc_recurring.695176.patch854 bytesjhedstrom

Comments

jhedstrom’s picture

Status: Active » Needs review
StatusFileSize
new854 bytes

Here's a patch that loads the order associated with the rfid that is passed to the form building function.

univate’s picture

jhedstrom’s picture

It may be related, but it seems to be in a different section of code.

univate’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.