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.
Minor bug:
in the uc_order.admin.inc line 1260, Undefined variable 'order_id'.
if ($order === FALSE) {
drupal_set_message(t('Order @order_id does not exist.', array('@order_id' => $order_id)));
drupal_goto('admin/store/orders');
}
should be:
if ($order === FALSE) {
drupal_set_message(t('Order @order_id does not exist.', array('@order_id' => $form_state['values']['order_id'])));
drupal_goto('admin/store/orders');
}
Comments
Comment #1
lixiphp CreditAttribution: lixiphp commentedComment #2
TR CreditAttribution: TR commentedWhen/where did you see this notice? How can I reproduce it?
Comment #3
longwaveI don't even see how that code is reachable, as the form cannot be generated if the order cannot be loaded, so I removed that block entirely.