2011-08-04 Javier Lanz <javier.lanz@artica.es>

* godmode/reporting/reporting_builder.php: Fixed blank names in reports

        Fixes: #3371409


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4668 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
javilanz 2011-08-04 16:31:31 +00:00
parent 1467e1907d
commit 7a443bd3bf
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-08-04 Javier Lanz <javier.lanz@artica.es>
* godmode/reporting/reporting_builder.php: Fixed blank names in reports
Fixes: #3371409
2011-08-04 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* install.php: Improved css style in installer.

View File

@ -152,7 +152,12 @@ switch ($action) {
$description = get_parameter('description');
if ($action == 'update') {
$resultOperationDB = (bool)db_process_sql_update('treport', array('name' => $reportName, 'id_group' => $idGroupReport, 'description' => $description), array('id_report' => $idReport));
if ($reportName != "" && $idGroupReport != ""){
$resultOperationDB = (bool)db_process_sql_update('treport', array('name' => $reportName, 'id_group' => $idGroupReport, 'description' => $description), array('id_report' => $idReport));
}
else {
$resultOperationDB = false;
}
}
else if ($action == 'save') {
if($reportName != "" && $idGroupReport != "") {