diff --git a/admin/reports.php b/admin/reports.php index bbd3808..f43bc71 100644 --- a/admin/reports.php +++ b/admin/reports.php @@ -57,6 +57,7 @@ case 'load_report': $ret['type'] = $report['option']['type']; $ret['stock'] = $report['option']['stock']; $ret['comment'] = $report['desc']; + $ret['name'] = $report['name']; $ret['category'] = ''; } else { $q = mysql_query("SELECT * FROM reports_committee WHERE id='$id'"); @@ -161,7 +162,7 @@ function edit_report(id,reports_id) $("#report_format").val(json.format); $("#report_comment").val(json.comment); /* Update the dialog title */ - $('#popup_editor').dialog('option', 'title', ": " + json.id); + $('#popup_editor').dialog('option', 'title', ": " + json.name); popup_editor(id); });