Now when don't creates manage recontask, comes back to the creation page with the anterior values. Ticket #2543.
This commit is contained in:
parent
4e090e20a6
commit
64fed83bbf
|
@ -178,6 +178,8 @@ if (isset($_GET["update"])) {
|
|||
else {
|
||||
ui_print_error_message(__('Error updating recon task'));
|
||||
echo $reason;
|
||||
include('manage_recontask_form.php');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -237,7 +239,13 @@ if (isset($_GET["create"])) {
|
|||
}
|
||||
}
|
||||
else {
|
||||
$result = db_process_sql_insert('trecon_task', $values);
|
||||
if ($name_exists){
|
||||
$reason = __('Recon-task name already exists');
|
||||
$result = false;
|
||||
}
|
||||
else{
|
||||
$result = db_process_sql_insert('trecon_task', $values);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -251,6 +259,8 @@ if (isset($_GET["create"])) {
|
|||
else {
|
||||
ui_print_error_message(__('Error creating recon task'));
|
||||
echo $reason;
|
||||
include('manage_recontask_form.php');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -146,9 +146,9 @@ elseif (isset($_GET["create"]) || isset($_GET["crt"])) {
|
|||
|
||||
if ($create_recon) {
|
||||
$id_rt = -1;
|
||||
$name = "";
|
||||
$network = "";
|
||||
$description = "";
|
||||
$name = get_parameter('name');
|
||||
$network = get_parameter('network');
|
||||
$description = get_parameter('description');
|
||||
$id_recon_server = 0;
|
||||
$interval = 0;
|
||||
$id_group = 0;
|
||||
|
@ -169,10 +169,18 @@ elseif (isset($_GET["create"]) || isset($_GET["crt"])) {
|
|||
$parent_recursion = 5;
|
||||
$macros = '';
|
||||
}
|
||||
|
||||
$modify = false;
|
||||
if (($name != '') || ($network != '')){
|
||||
$modify = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!$modify){
|
||||
// Headers
|
||||
ui_print_page_header (__('Manage recontask'), "", false, "recontask", true);
|
||||
}
|
||||
|
||||
// Headers
|
||||
ui_print_page_header (__('Manage recontask'), "", false, "recontask", true);
|
||||
|
||||
$is_windows = strtoupper(substr(PHP_OS, 0, 3)) == 'WIN';
|
||||
if ($is_windows) {
|
||||
|
|
Loading…
Reference in New Issue