From 52d6b1e694ae3c81c7a5bf527e3501b721f5892c Mon Sep 17 00:00:00 2001 From: mr-russ Date: Mon, 2 Apr 2007 10:29:42 +0000 Subject: [PATCH] Fixed Bug #1358640: Can't edit a report and set its comment to empty. Report descriptions have not been able to be empty since the ability to alter Reports. I could not see any reason for this and have changed the code to allow comments to be empty. --- classes/Reports.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/Reports.php b/classes/Reports.php index 330ba5b8..cfd2d98d 100644 --- a/classes/Reports.php +++ b/classes/Reports.php @@ -4,7 +4,7 @@ * the functions provided by the database driver exclusively, and hence * will work with any database without modification. * - * $Id: Reports.php,v 1.15 2005/11/04 04:19:41 chriskl Exp $ + * $Id: Reports.php,v 1.16 2007/04/02 10:29:42 mr-russ Exp $ */ class Reports { @@ -101,9 +101,9 @@ 'report_name' => $report_name, 'db_name' => $db_name, 'created_by' => $server_info['username'], - 'report_sql' => $report_sql + 'report_sql' => $report_sql, + 'descr' => $descr ); - if ($descr != '') $temp['descr'] = $descr; return $this->driver->update('ppa_reports', $temp, array('report_id' => $report_id)); -- 2.39.5