Skip to content

Commit

Permalink
Xlsx, fix the user property value analysis (#1898)
Browse files Browse the repository at this point in the history
relocation of configuration method "getReportDesignConfiguration()"
  • Loading branch information
speckyspooky authored Sep 7, 2024
1 parent e61ee04 commit d45eaab
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ public static boolean booleanOption(ITaskOption options, IReportContent reportCo
value = options.getOption(name);
}

if (value != null) {
result = booleanOption(value, defaultValue);
}

if (reportContent != null && value == null) {
value = getReportDesignConfiguration(reportContent, name);
}

if (value != null) {
result = booleanOption(value, defaultValue);
}

return result;
}

Expand Down Expand Up @@ -183,14 +183,14 @@ public static String stringOption(ITaskOption options, IContent birtContent, Str
value = options.getOption(name);
}

if (value != null) {
result = value.toString();
}

if (birtContent != null && birtContent.getReportContent() != null && value == null) {
value = getReportDesignConfiguration(birtContent.getReportContent(), name);
}

if (value != null) {
result = value.toString();
}

return result;
}

Expand Down Expand Up @@ -223,14 +223,14 @@ public static String stringOption(ITaskOption options, IReportContent reportCont
value = options.getOption(name);
}

if (value != null) {
result = value.toString();
}

if (reportContent != null && value == null) {
value = getReportDesignConfiguration(reportContent, name);
}

if (value != null) {
result = value.toString();
}

return result;
}

Expand Down

0 comments on commit d45eaab

Please sign in to comment.