Skip to content

Instantly share code, notes, and snippets.

@jaspertandy
Created September 13, 2013 16:48
Show Gist options
  • Save jaspertandy/6553148 to your computer and use it in GitHub Desktop.
Save jaspertandy/6553148 to your computer and use it in GitHub Desktop.
In method send_notification() at line 309
if ( ! empty($order_ids))
{
//this makes sure that any fields in 'fields' are in the
//order set as well. Will add missing at the end like this
$field_loop_ids = array_merge(
$order_ids,
array_diff($field_loop_ids, $order_ids)
);
} else {
$layout = $this->composer_field_order( $form_data['form_id'] );
$field_loop_ids = array_merge( $layout , array_diff( $field_loop_ids , $layout ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment