MantisBT - ATutor
View Issue Details
0004297ATutorEnrollmentpublic2010-05-19 06:312010-09-22 11:52
cindy 
cindy 
normalminoralways
closedfixed 
2.0 
2.0 
SVN
0004297: "Enrol me" link not work
On "browse course" page, "enrol me" link takes user to "my start page" and nothing enrolled.

Should also test "unenroll" link.
No tags attached.
Issue History
2010-05-19 06:31cindyNew Issue
2010-05-19 06:31cindyAffects version => SVN
2010-06-02 09:29cindyStatusnew => resolved
2010-06-02 09:29cindyFixed in Version => 2.0
2010-06-02 09:29cindyResolutionopen => fixed
2010-06-02 09:29cindyAssigned To => cindy
2010-06-02 09:29cindyNote Added: 0004306
2010-09-22 11:52gregStatusresolved => closed

Notes
(0004306)
cindy   
2010-06-02 09:29   
SVN revision: 9968

Solution:
1. Only display "enroll me" link if the user is not the course owner and is not enrolled.
2. add $_user_location = "users" into "enroll.php" so that it can be accessed out of a course.

Affected scripts:
enroll.php
include/html/browse.inc.php
themes/default/users/browse.tmpl.php