function autopilot_add_target_form_submit($form_id, $form_values) {
  // check for target with duplicate name
  //
  if (autopilot_get_target(array("name" => $form_values['name'])) && !$form_values['tid']) {
    drupal_set_message("name", "The Target with name {$form_values['name']} already exists.  Please select another.");
    return drupal_get_form($form_id);
  }
  autopilot_save_target($form_values);
  drupal_goto("admin/autopilot/configure");
}

you can just return 'admin/autopilot/configure'. Doing drupal_goto manually actually creates bugs.

Comments

akalsey’s picture

Status: Active » Fixed

Fixed in beta-1

Anonymous’s picture

Status: Fixed » Closed (fixed)

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