The goto in the next init block does not have an effect (most of the times)


page submission(student: StudentInCourse, assign: Assignment, tab: String) {
var sub: AssignmentSubmission
init{
sub := assign.submission(student);
var mayEdit := sub.mayEdit();
log("may edit " + assign + " = " + mayEdit);
if(tab == "" && sub != null && !mayEdit) {
log(“redirecting to view tab”);
goto submission(student, assign, “view”);
}
}
// …
}

Update: happens in WebLab https://yellowgrass.org/issue/WebLab/127

Submitted by Eelco Visser on 29 January 2013 at 16:54

Log in to post comments