Commit 908f81c 1 parent 9d9ccf5 commit 908f81c Copy full SHA for 908f81c
File tree 1 file changed +16
-12
lines changed
gradebookng/tool/src/java/org/sakaiproject/gradebookng/tool/panels/importExport
1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -91,18 +91,22 @@ protected void onUpdate(final AjaxRequestTarget ajaxRequestTarget) {
91
91
}
92
92
});
93
93
94
- if (businessService .isStudentNumberVisible ())
95
- {
96
- add (new AjaxCheckBox ("includeStudentNumber" , Model .of (this .includeStudentNumber )) {
97
- private static final long serialVersionUID = 1L ;
98
-
99
- @ Override
100
- protected void onUpdate (final AjaxRequestTarget ajaxRequestTarget ) {
101
- ExportPanel .this .includeStudentNumber = !ExportPanel .this .includeStudentNumber ;
102
- setDefaultModelObject (ExportPanel .this .includeStudentNumber );
103
- }
104
- });
105
- }
94
+ final boolean stuNumVisible = businessService .isStudentNumberVisible ();
95
+ add (new AjaxCheckBox ("includeStudentNumber" , Model .of (this .includeStudentNumber )) {
96
+ private static final long serialVersionUID = 1L ;
97
+
98
+ @ Override
99
+ protected void onUpdate (final AjaxRequestTarget ajaxRequestTarget ) {
100
+ ExportPanel .this .includeStudentNumber = !ExportPanel .this .includeStudentNumber ;
101
+ setDefaultModelObject (ExportPanel .this .includeStudentNumber );
102
+ }
103
+
104
+ @ Override
105
+ public boolean isVisible ()
106
+ {
107
+ return stuNumVisible ;
108
+ }
109
+ });
106
110
107
111
add (new AjaxCheckBox ("includeGradeItemScores" , Model .of (this .includeGradeItemScores )) {
108
112
private static final long serialVersionUID = 1L ;
You can’t perform that action at this time.
0 commit comments