IDEMPIERE-1912 Document Action Access bug / thanks to hieplq

This commit is contained in:
Carlos Ruiz 2014-04-23 18:18:58 -05:00
parent 9cf721e1ad
commit af43f27785
1 changed files with 8 additions and 5 deletions

View File

@ -2581,12 +2581,15 @@ public final class MRole extends X_AD_Role
while (rs.next()) {
String op = rs.getString(1);
String active=rs.getString(2);
if ("N".equals(active) && validOptions.contains(op)) {
validOptions.remove(op);
if ("N".equals(active)) {
if (validOptions.contains(op)) {
validOptions.remove(op);
}
} else {
if (!validOptions.contains(op))
validOptions.add(op);
}
if (!validOptions.contains(op)) {
validOptions.add(op);
}
}
}
}