2014-05-04 Junichi Satoh <junichi@rworks.jp>

* godmode/agentes/planned_downtime.list.php: Fixed unexpected agent
	deletion that is not associated with the planned downtime which is
	deleted.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9849 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
jsatoh 2014-05-04 13:42:03 +00:00
parent a10fe523a8
commit 815867681c
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2014-05-04 Junichi Satoh <junichi@rworks.jp>
* godmode/agentes/planned_downtime.list.php: Fixed unexpected agent
deletion that is not associated with the planned downtime which is
deleted.
2014-04-29 Vanessa Gil <vanessa.gil@artica.es>
* include/ajax/module.php: Add function to get

View File

@ -172,9 +172,7 @@ if ($stop_downtime) {
if ($delete_downtime) {
$result = db_process_sql_delete('tplanned_downtime', array('id' => $id_downtime));
$result2 = db_process_sql_delete('tplanned_downtime_agents', array('id' => $id_downtime));
if (($result === false) OR ($result2 === false)) {
if ($result === false) {
ui_print_error_message(__('Not deleted. Error deleting data'));
}
else {