New maps in progress... (List, create and edit mode)
This commit is contained in:
parent
9cebc5ef12
commit
a24670d961
|
@ -51,7 +51,7 @@ function maps_get_subtype_string($subtype) {
|
|||
|
||||
function maps_duplicate_map($id) {
|
||||
global $config;
|
||||
$map = db_get_sql("SELECT * FROM tmap WHERE id_map = " . $id);
|
||||
$map = db_get_sql("SELECT * FROM tmap WHERE id = " . $id);
|
||||
$result = 0;
|
||||
if (!empty($map)) {
|
||||
$map_names = db_get_all_rows_sql("SELECT name FROM tmap WHERE name LIKE '" . $map['name'] . "%'");
|
||||
|
|
|
@ -156,13 +156,13 @@ else if ($delete_networkmap || $duplicate_networkmap || $update_networkmap) {
|
|||
if ($delete_networkmap) {
|
||||
$result_delete = maps_delete_map($id);
|
||||
|
||||
if ($result_delete) {
|
||||
if (!$result_delete) {
|
||||
db_pandora_audit( "Networkmap management",
|
||||
"Delete networkmap #$id");
|
||||
"Fail try to delete networkmap #$id");
|
||||
}
|
||||
else {
|
||||
db_pandora_audit( "Networkmap management",
|
||||
"Fail try to delete networkmap #$id");
|
||||
"Delete networkmap #$id");
|
||||
}
|
||||
|
||||
ui_print_result_message ($result_delete,
|
||||
|
|
Loading…
Reference in New Issue