IDEMPIERE-1912 Document Action Access bug / thanks to hieplq
This commit is contained in:
parent
9cf721e1ad
commit
af43f27785
|
@ -2581,14 +2581,17 @@ public final class MRole extends X_AD_Role
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
String op = rs.getString(1);
|
String op = rs.getString(1);
|
||||||
String active=rs.getString(2);
|
String active=rs.getString(2);
|
||||||
if ("N".equals(active) && validOptions.contains(op)) {
|
if ("N".equals(active)) {
|
||||||
|
if (validOptions.contains(op)) {
|
||||||
validOptions.remove(op);
|
validOptions.remove(op);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!validOptions.contains(op))
|
if (!validOptions.contains(op)) {
|
||||||
validOptions.add(op);
|
validOptions.add(op);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
validOptions.toArray(options);
|
validOptions.toArray(options);
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
|
|
Loading…
Reference in New Issue