aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2016-10-19 16:30:16 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2016-10-19 16:30:16 -0400
commitd2abfa4f48b0925838590884bf45f06eeaa74440 (patch)
treeecee9cec8932bc8033116cfe4ade9dec43cc1278
parent6fdb5b14e9aff4db9dde4dfe1806a69ab96801c3 (diff)
downloadGradeBook-d2abfa4f48b0925838590884bf45f06eeaa74440.tar.gz
GradeBook-d2abfa4f48b0925838590884bf45f06eeaa74440.zip
explanations for the sort action
-rwxr-xr-xGradeBook_lib.tcl6
1 files changed, 5 insertions, 1 deletions
diff --git a/GradeBook_lib.tcl b/GradeBook_lib.tcl
index 41fa9f1..59749a2 100755
--- a/GradeBook_lib.tcl
+++ b/GradeBook_lib.tcl
@@ -1674,7 +1674,11 @@ proc ChoseAction {action permission_list user} {
if { [isActionGranted $action $permission_list $user] } {
switch $action {
- sort { SetSortColumn; ChoseAction defaultview $permission_list $user }
+ sort {
+ # we do not need to run SetSortColumn since it is done at the very beginning
+ # before we run ::ncgi::header
+ ChoseAction defaultview $permission_list $user
+ }
addcolumn {
AddColumn $permission_list $user;
htmlDefaultView $permission_list $user