diff --git a/pom.xml b/pom.xml index cdcf758..d17fab6 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ 4.0.0 jar web_api_show_package - 2.0.0 + 2.0.1 Web API Show Package diff --git a/src/main/java/com/checkpoint/mgmt_api/examples/ShowPackageConfiguration.java b/src/main/java/com/checkpoint/mgmt_api/examples/ShowPackageConfiguration.java index 2ab9641..9e237ac 100644 --- a/src/main/java/com/checkpoint/mgmt_api/examples/ShowPackageConfiguration.java +++ b/src/main/java/com/checkpoint/mgmt_api/examples/ShowPackageConfiguration.java @@ -27,7 +27,7 @@ enum ShowPackageConfiguration { INSTANCE; - private static final String TOOL_VERSION = "v2.0.0"; + private static final String TOOL_VERSION = "v2.0.1"; private static final String TAR_SUFFIX = ".tar.gz"; private static final String LOG_SUFFIX = ".elg"; private static final String PREFIX = "show_package-"; diff --git a/src/main/resources/com/checkpoint/mgmt_api/templates/rulebase.tpl.html b/src/main/resources/com/checkpoint/mgmt_api/templates/rulebase.tpl.html index 31c7d19..3d44c21 100644 --- a/src/main/resources/com/checkpoint/mgmt_api/templates/rulebase.tpl.html +++ b/src/main/resources/com/checkpoint/mgmt_api/templates/rulebase.tpl.html @@ -119,9 +119,14 @@ // end of dynamic content - var firstAccessRule = data.find(function (e) { - return e.type === "access-rule" - }); + var firstAccessRule; + for (var i in data) { + if (data[i].type === "access-rule") { + firstAccessRule = data[i]; + break; + } + } + var showHitCount = !!(firstAccessRule && firstAccessRule.hits);