Skip to content

Commit

Permalink
Fix string comparisons
Browse files Browse the repository at this point in the history
Fixes #1100

Signed-off-by: Pierre Belloy <[email protected]>
  • Loading branch information
pbe-axelor committed Aug 8, 2024
1 parent 6afe843 commit f4b8b02
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ public static TenantConfig findById(Map<String, String> props, String tenantId)
final String active = get(props, prefix, "active");
final String visible = get(props, prefix, "visible");

cfg.active = active == null || active == "true";
cfg.visible = visible == null || visible == "true";
cfg.active = active == null || "true".equalsIgnoreCase(active);
cfg.visible = visible == null || "true".equalsIgnoreCase(visible);

cfg.tenantId = tenantId;
cfg.tenantName = get(props, prefix, "name");
Expand Down

0 comments on commit f4b8b02

Please sign in to comment.