Clicking on 'LAB: Role Based Access Control' produces 'Invalid Session' in UI #44
This commit is contained in:
parent
a44e08cbfd
commit
2f43c16cc1
@ -842,13 +842,17 @@ public class WebSession {
|
|||||||
} else if (al instanceof RandomLessonAdapter) {
|
} else if (al instanceof RandomLessonAdapter) {
|
||||||
try {
|
try {
|
||||||
RandomLessonAdapter rla = (RandomLessonAdapter) al;
|
RandomLessonAdapter rla = (RandomLessonAdapter) al;
|
||||||
int stage = myParser.getIntParameter(STAGE) - 1;
|
if (!myParser.getRawParameter(STAGE).equals("null")) {
|
||||||
String[] stages = rla.getStages();
|
int stage = myParser.getIntParameter(STAGE) - 1;
|
||||||
if (stages == null) {
|
String[] stages = rla.getStages();
|
||||||
stages = new String[0];
|
if (stages == null) {
|
||||||
}
|
stages = new String[0];
|
||||||
if (stage >= 0 && stage < stages.length) {
|
}
|
||||||
rla.setStage(this, stages[stage]);
|
if (stage >= 0 && stage < stages.length) {
|
||||||
|
rla.setStage(this, stages[stage]);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
rla.setStage(this, null);
|
||||||
}
|
}
|
||||||
} catch (ParameterNotFoundException pnfe) {
|
} catch (ParameterNotFoundException pnfe) {
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user