diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 0130e42438..47f005ca52 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2011-08-04 Javier Lanz + + * godmode/reporting/visual_console_builder.php: Fixed blank names in + maps in visual console builder + + Fixes: #3371409 + 2011-08-04 Javier Lanz * godmode/reporting/reporting_builder.php: Fixed blank names in reports diff --git a/pandora_console/godmode/reporting/visual_console_builder.php b/pandora_console/godmode/reporting/visual_console_builder.php index ccf3ff8537..1dc30e377b 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.php +++ b/pandora_console/godmode/reporting/visual_console_builder.php @@ -60,7 +60,9 @@ switch ($activeTab) { switch ($action) { case 'update': - $result = db_process_sql_update('tlayout', $values, array('id' => $idVisualConsole)); + $result = false; + if($values['name'] != "" && $values['background']) + $result = db_process_sql_update('tlayout', $values, array('id' => $idVisualConsole)); if ($result !== false && $values['background']) { $action = 'edit'; $statusProcessInDB = array('flag' => true, 'message' => '

'.__('Successfully update.').'

');