Moodle

Wrong data being exported for "Course Title" and "Course Category" types of questions

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.9.5
  • Fix Version/s: None
  • Component/s: Feedback
  • Labels:
    None
  • Difficulty:
    Easy
  • Affected Branches:
    MOODLE_19_STABLE

Description

Add "Information-Type" question to the feedback using Course Title and Course Category fields
Submit something as a student
Login as an instructor and download responses into Excel
Look up Course Title and Course Category fields. They seem to be OK.
Now in that Excel file, click the second tab, called "detailed"
You will noticed that both Course Title and Course Category fields list "Wednesday, December 31, 1969, 06:00 PM" for some reason

I can only confirm this for own installation, so please double-check on yours

Activity

Hide
Elena Ivanova added a comment -

solution:

modified the get_printval function in mod/feedback/item/info/lib.php:

FROM:

function get_printval($item, $value) { if(!isset($value->value)) return ''; return UserDate($value->value); }

TO:

function get_printval($item, $value) { if(!isset($value->value)) return ''; else if (is_numeric($value->value)) return UserDate($value->value); else return $value->value; }

Show
Elena Ivanova added a comment - solution: modified the get_printval function in mod/feedback/item/info/lib.php: FROM: function get_printval($item, $value) { if(!isset($value->value)) return ''; return UserDate($value->value); } TO: function get_printval($item, $value) { if(!isset($value->value)) return ''; else if (is_numeric($value->value)) return UserDate($value->value); else return $value->value; }
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: