Fixed Bug #1358640: Can't edit a report and set its comment to empty.
authormr-russ <mr-russ>
Mon, 2 Apr 2007 10:30:39 +0000 (10:30 +0000)
committermr-russ <mr-russ>
Mon, 2 Apr 2007 10:30:39 +0000 (10:30 +0000)
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

index 330ba5b82e367ab1263846681e3889278dccbfce..5610df0fd63d700c2525b2b2c2ee4c1e3615abd0 100644 (file)
@@ -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.15.4.1 2007/04/02 10:30:39 mr-russ Exp $
         */
 
        class Reports {
                                '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));