2011-12-30 Vanessa Gil <vanessa.gil@artica.es>
* godmode/netflow/nf_edit.php godmode/netflow/nf_item_list.php: Cascade delete filters. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5309 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
7046167095
commit
a0ff9838d8
|
@ -1,3 +1,7 @@
|
|||
2011-12-30 Vanessa Gil <vanessa.gil@artica.es>
|
||||
* godmode/netflow/nf_edit.php
|
||||
godmode/netflow/nf_item_list.php: Cascade delete filters.
|
||||
|
||||
2011-12-29 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* godmode/agentes/module_manager_editor.php: Fixe module editor when the
|
||||
|
|
|
@ -43,11 +43,18 @@ $id = (int) get_parameter ('id');
|
|||
$name = (string) get_parameter ('name');
|
||||
|
||||
if ($delete) {
|
||||
$id_filter = db_get_value('id_name', 'tnetflow_filter', 'id_sg', $id);
|
||||
$result = db_process_sql_delete ('tnetflow_filter',
|
||||
array ('id_sg' => $id));
|
||||
|
||||
$result2 = db_process_sql_delete ('tnetflow_report_content',
|
||||
array ('id_filter' => $id_filter));
|
||||
|
||||
if ($result !== false) $result = true;
|
||||
else $result = false;
|
||||
if ($result !== false) {
|
||||
$result = true;
|
||||
} else {
|
||||
$result = false;
|
||||
}
|
||||
|
||||
ui_print_result_message ($result,
|
||||
__('Successfully deleted'),
|
||||
|
@ -61,8 +68,12 @@ if ($multiple_delete) {
|
|||
db_process_sql_begin();
|
||||
|
||||
foreach ($ids as $id) {
|
||||
$id_filter = db_get_value('id_name', 'tnetflow_filter', 'id_sg', $id);
|
||||
$result = db_process_sql_delete ('tnetflow_filter',
|
||||
array ('id_sg' => $id));
|
||||
|
||||
$result2 = db_process_sql_delete ('tnetflow_report_content',
|
||||
array ('id_filter' => $id_filter));
|
||||
|
||||
if ($result === false) {
|
||||
db_process_sql_rollback();
|
||||
|
|
|
@ -161,7 +161,7 @@ if(isset($data)) {
|
|||
echo "</div>";
|
||||
echo "</form>";
|
||||
}else {
|
||||
echo "<div class='nf'>".__('There are no defined filters')."</div>";
|
||||
echo "<div class='nf'>".__('There are no defined items')."</div>";
|
||||
}
|
||||
|
||||
echo '<form method="post" action="index.php?sec=netf&sec2=godmode/netflow/nf_report_item&id='.$id.'">';
|
||||
|
|
Loading…
Reference in New Issue