File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
war-core/src/main/webapp/selection/jsp
web-core/src/test/java/com/silverpeas/profile/web Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 615
615
616
616
// cancel the selection and go back to the caller.
617
617
function cancelSelection () {
618
+ < c: choose>
619
+ < c: when test= " ${ hotSetting } " >
620
+ window .close ();
621
+ < / c: when>
622
+ < c: otherwise>
618
623
$ (' input[name="UserOrGroupSelection"]' ).val (' false' );
619
624
$ (" #selection" ).attr (" action" , " <c:out value='${ cancelationURL } '/>" );
620
625
$ (" #selection" ).submit ();
626
+ < / c: otherwise>
627
+ < / c: choose>
621
628
}
622
629
623
630
function highlightFilter ($this ) {
Original file line number Diff line number Diff line change @@ -157,15 +157,15 @@ public UserDetail[] answer(InvocationOnMock invocation) throws Throwable {
157
157
&& !passedCriteria .isCriterionOnNameSet ())) {
158
158
return emptyUsers ;
159
159
}
160
- if (criteria .isCriterionOnRoleIdsSet () && passedCriteria .isCriterionOnRoleIdsSet ()) {
161
- List <String > roles = Arrays .asList (criteria .getCriterionOnRoleIds ());
162
- List <String > passedRoles = Arrays .asList (passedCriteria .getCriterionOnRoleIds ());
160
+ if (criteria .isCriterionOnRoleNamesSet () && passedCriteria .isCriterionOnRoleNamesSet ()) {
161
+ List <String > roles = Arrays .asList (criteria .getCriterionOnRoleNames ());
162
+ List <String > passedRoles = Arrays .asList (passedCriteria .getCriterionOnRoleNames ());
163
163
if (roles .size () != passedRoles .size () || !roles .containsAll (passedRoles )) {
164
164
return emptyUsers ;
165
165
}
166
- } else if ((!criteria .isCriterionOnRoleIdsSet ()
167
- && passedCriteria .isCriterionOnRoleIdsSet ()) || (criteria .isCriterionOnRoleIdsSet ()
168
- && !passedCriteria .isCriterionOnRoleIdsSet ())) {
166
+ } else if ((!criteria .isCriterionOnRoleNamesSet ()
167
+ && passedCriteria .isCriterionOnRoleNamesSet ()) || (criteria .isCriterionOnRoleNamesSet ()
168
+ && !passedCriteria .isCriterionOnRoleNamesSet ())) {
169
169
return emptyUsers ;
170
170
}
171
171
if (criteria .isCriterionOnUserIdsSet () && passedCriteria .isCriterionOnUserIdsSet ()) {
You can’t perform that action at this time.
0 commit comments