2012-06-06 Hirofumi Kosaka <kosaka@rworks.jp>

* godmode/agentes/planned_downtime.php: fixed that 'Affect'
	column at 'planned downtime' may show bad values. cleaned
	source code style.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6417 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
hkosaka 2012-06-06 07:55:31 +00:00
parent 75fa702e45
commit e0fabc8d61
2 changed files with 124 additions and 119 deletions

View File

@ -1,3 +1,9 @@
2012-06-06 Hirofumi Kosaka <kosaka@rworks.jp>
* godmode/agentes/planned_downtime.php: fixed that 'Affect'
column at 'planned downtime' may show bad values. cleaned
source code style.
2012-06-05 Dario Rodriguez <dario.rodriguez@artica.es> 2012-06-05 Dario Rodriguez <dario.rodriguez@artica.es>
* operation/tree.php: Fixed a missing group icons * operation/tree.php: Fixed a missing group icons

View File

@ -193,7 +193,7 @@ if ($create_downtime || $update_downtime) {
//////////////////////////////// ////////////////////////////////
// Show create / update form // Show create / update form
//////////////////////////////// ////////////////////////////////
if (($first_create != 0) OR ($first_update != 0)){ if (($first_create != 0) OR ($first_update != 0)){
// Have any data to show ? // Have any data to show ?
if ($id_downtime > 0) { if ($id_downtime > 0) {
switch ($config["dbtype"]) { switch ($config["dbtype"]) {
@ -354,7 +354,6 @@ if ($create_downtime || $update_downtime) {
$data[1] = db_get_sql ("SELECT nombre FROM tgrupo WHERE id_grupo = ". $downtime["id_grupo"]); $data[1] = db_get_sql ("SELECT nombre FROM tgrupo WHERE id_grupo = ". $downtime["id_grupo"]);
$data[2] = ui_print_os_icon ($downtime["id_os"], true, true); $data[2] = ui_print_os_icon ($downtime["id_os"], true, true);
$data[3] = $downtime["ultimo_contacto"]; $data[3] = $downtime["ultimo_contacto"];
@ -415,7 +414,7 @@ else {
$data[2] = ui_print_group_icon ($downtime['id_group'], true); $data[2] = ui_print_group_icon ($downtime['id_group'], true);
$data[3] = date ("Y-m-d H:i", $downtime['date_from']); $data[3] = date ("Y-m-d H:i", $downtime['date_from']);
$data[4] = date ("Y-m-d H:i", $downtime['date_to']); $data[4] = date ("Y-m-d H:i", $downtime['date_to']);
if($only_alerts) { if($downtime['only_alerts']) {
$data[5] = __('Only alerts'); $data[5] = __('Only alerts');
} }
else { else {