Closed (fixed)
Project:
AutoPilot
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Aug 2007 at 10:09 UTC
Updated:
23 Oct 2008 at 21:42 UTC
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
Comment #1
akalsey commentedFixed in beta-1
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.