MantisBT - ATutor
View Issue Details
0003907ATutorPretty Urlpublic2009-08-05 08:482009-12-16 03:59
IndieRect 
cindy 
normalmajoralways
closedfixed 
1.6.3 
1.6.4 
SVN
0003907: Course home page tools disappear after rearranging them
Steps to reproduce:
1. Log in as an admin.
2. Make sure that Pretty URL and/or Course Directory Name are enabled in System Preferences.
3. Log in as an instructor.
4. Create a new course and enter it.
5. Rearrange some home page tools by drag&dropping (detailed view).
6. Leave the course.
7. Enter the course again ? all the home page tools are missing.

Reason:
When the tools are rearranged AT_courses.home_links gets updated. If Pretty URL and/or Course Directory Name are enabled, those paths contain the course ID. Once written the paths cannot be parsed correctly on subsequent returns to the course.

Proposed solution:
Make sure that "bare" URLs (without IDs) are written to that field.
P.S. Is it OK to mark reports "major" in a sense of "urgent", like this one? Or is there a better way to signal higher priority of issue reports?
No tags attached.
related to 0004085closed cindy Detail view modules cannot be deleted 
Issue History
2009-08-05 08:48IndieRectNew Issue
2009-08-05 08:48IndieRectAffects version => SVN
2009-11-05 10:28gregStatusnew => assigned
2009-11-05 10:28gregAssigned To => harris
2009-11-05 10:33gregNote Added: 0003834
2009-12-15 06:32gregAssigned Toharris => cindy
2009-12-15 08:52cindyStatusassigned => resolved
2009-12-15 08:52cindyFixed in Version => 1.6.4
2009-12-15 08:52cindyResolutionopen => fixed
2009-12-15 08:52cindyNote Added: 0004001
2009-12-15 08:54cindyRelationship addedrelated to 0004085
2009-12-16 03:59gregStatusresolved => closed

Notes
(0003834)
greg   
2009-11-05 10:33   
Urgent with no work around. In this case major but not urgent, since pretty URL can be turned off. Pretty URL needs a bit of work still. Should have most issues resolved for 1.6.4
(0004001)
cindy   
2009-12-15 08:52   
SVN revision: 9041

Solution: modify backend php script that handles ajax call to move/delete modules, revert pretty urls back to regular urls before update them into database.

Affected scripts:
index.php
move_module.php
mods/_standard/student_tools/index.php