Issue Details (XML | Word | Printable)

Key: MDL-16184
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Piers Harding
Reporter: Ron Meske
Votes: 0
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

First Access and Last Access dates for SCOs are always the same

Created: 24/Aug/08 06:22 AM   Updated: 12/Feb/09 04:34 AM
Return to search
Component/s: SCORM
Affects Version/s: 1.9.1, 1.9.2
Fix Version/s: 1.9.5

File Attachments: 1. Text File scorm_start_and_end_time_19.patch (6 kB)

Issue Links:
Duplicate
 
Relates
 

Database: Any
Participants: Dan Marsden, Jose G. C., Piers Harding and Ron Meske
Security Level: None
QA Assignee: Ron Meske
Resolved date: 29/Jan/09
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
The reports for SCOs display identical dates/times for First Access and Last Access when accesed from users profile activity reports regardless of data stored.

The logic for First A ccess of a sco is based on finding the earliest time of a all elemts modified, but this is not an acurrate result as each time a data is written to a field the timemodified is updated. Therefore if a Course has one SCO and only writes to the fields of total_time, score_raw, lesson_status, lesson_location, suspend_data, these fields may be updated several times while the sco is being viewed.

I recommend adding an additional field for storing the first access date.



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Piers Harding committed 3 files to 'Moodle CVS' - 20/Dec/08 03:20 PM
MDL-16184 - patch to correct the calculation of first, and last access to a SCORM attempt.
MODIFY mod/scorm/locallib.php   Rev. 1.84    (+45 -1 lines)
MODIFY mod/scorm/loaddatamodel.php   Rev. 1.2    (+3 -0 lines)
MODIFY mod/scorm/report.php   Rev. 1.57    (+5 -5 lines)
Piers Harding committed 4 files to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 29/Jan/09 03:16 AM
MDL-16184 - patch to correct the calculation of first, and last access to a SCORM attempt. backport to 1.9. + missing php tag in debug.
MODIFY mod/scorm/locallib.php   Rev. 1.46.2.27    (+44 -2 lines)
MODIFY mod/scorm/Attic/api.php   Rev. 1.24.6.3    (+7 -3 lines)
MODIFY mod/scorm/report.php   Rev. 1.46.2.9    (+9 -6 lines)
MODIFY mod/scorm/datamodels/debug.js.php   Rev. 1.1.2.6    (+1 -1 lines)