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,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) {