Show the report name instead of the report id in the dialog title

This commit is contained in:
james 2010-03-29 20:46:53 +00:00
parent 6d4186182e
commit da17e3461c

View File

@ -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', "<?=i18n('Report')?>: " + json.id);
$('#popup_editor').dialog('option', 'title', "<?=i18n('Report')?>: " + json.name);
popup_editor(id);
});