From d3ae8d42eaaa8abb6aa262290fc7dd05c4d9840e Mon Sep 17 00:00:00 2001 From: Michael Hawkins Date: Wed, 6 Nov 2019 10:08:01 +0800 Subject: [PATCH] MDL-66297 mod_forum: Added word/char count column headings to export --- mod/forum/export.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/forum/export.php b/mod/forum/export.php index dc15402470f..e13c9097e63 100644 --- a/mod/forum/export.php +++ b/mod/forum/export.php @@ -114,7 +114,8 @@ if ($form->is_cancelled()) { $humandates = !empty($data->humandates); $fields = ['id', 'discussion', 'parent', 'userid', 'created', 'modified', 'mailed', 'subject', 'message', - 'messageformat', 'messagetrust', 'attachment', 'totalscore', 'mailnow', 'deleted', 'privatereplyto']; + 'messageformat', 'messagetrust', 'attachment', 'totalscore', 'mailnow', 'deleted', 'privatereplyto', + 'wordcount', 'charcount']; $datamapper = $legacydatamapperfactory->get_post_data_mapper(); $exportdata = new ArrayObject($datamapper->to_legacy_objects($posts));