diff --git a/admin/reports.php b/admin/reports.php index 44d88acf..bbd38089 100644 --- a/admin/reports.php +++ b/admin/reports.php @@ -180,6 +180,7 @@ function add_report() function gen_report() { report_gen($('#report').val()); + return false; } var edit=false; @@ -312,7 +313,12 @@ $(document).ready(function() { /* Load available reports */ $reports = report_load_all(); + foreach($report_custom as $id=>$r) { + $r['id'] = -$id; + $reports[-$id] = $r; + } ?> +