Issue Details (XML | Word | Printable)

Key: MDL-17275
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Sam Marshall
Reporter: Sam Marshall
Votes: 0
Watchers: 0
Operations

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

Completion: tickboxes are lost when using Back button

Created: 18/Nov/08 11:31 PM   Updated: 18/Nov/08 11:46 PM
Component/s: Course
Affects Version/s: 2.0
Fix Version/s: 2.0

Participants: Sam Marshall
Security Level: None
Resolved date: 18/Nov/08
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
(Bug found by our QA staff)

If you tick some completion tickboxes (with AJAX on), they tick instantly in the page. If you then go to another page, and return to the course page by clicking Back in the browser, the new tick values are lost. This could confuse users.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Sam Marshall added a comment - 18/Nov/08 11:46 PM
Fixed. The fix technique is as follows:

1) I added a form with a hidden value set to 0 on the course view page (when completion is on).

2) JavaScript sets this value to 1 if you toggle any completion tickbox

3) If the value is 1 when the page first loads, then JS figures you must have used the back button, sets it to 0, and does a reload.