MantisBT - ATutor
View Issue Details
0004647ATutor- no cat -public2010-12-08 15:062010-12-20 10:19
greg 
cindy 
normalminoralways
closedfixed 
 
2.0.2 
SVN
0004647: details toggle fails on student tools
The toggle to switch between detailed and icon view fails on the Student Tools page.
No tags attached.
Issue History
2010-12-08 15:06gregNew Issue
2010-12-08 15:06gregAffects version => SVN
2010-12-08 15:07gregStatusnew => assigned
2010-12-08 15:07gregAssigned To => cindy
2010-12-08 15:46cindyStatusassigned => resolved
2010-12-08 15:46cindyFixed in Version => 2.0.2
2010-12-08 15:46cindyResolutionopen => fixed
2010-12-08 15:46cindyNote Added: 0004777
2010-12-20 10:19gregStatusresolved => closed

Notes
(0004777)
cindy   
2010-12-08 15:46   
SVN revision: 10492

Solution: The problem happens when pretty url is turned on. As the script identifies the request from "student tools" page in the way that HTTP_REFERER contains string "mods/_standard/student_tools/index.php". However, when pretty url is on, the REFERER indeed does not contain "mods/_standard". Modified the checking of the contained string to "/student_tools/index.php" fixes the problem.

Affected: switch_view.php