Author: timopollmeier
Date: 2016-10-12 10:19:18 +0200 (Wed, 12 Oct 2016)
New Revision: 26372

Modified:
   trunk/gsa/ChangeLog
   trunk/gsa/src/html/classic/omp.xsl
Log:
        * src/html/classic/omp.xsl (report-hosts-link): Get number of results
        from "result_count" instead of "results" subelement of host.
        (report [hosts]): Get number of ports from "port_count" instead of
        "ports" subelement of host.

Modified: trunk/gsa/ChangeLog
===================================================================
--- trunk/gsa/ChangeLog 2016-10-12 08:18:56 UTC (rev 26371)
+++ trunk/gsa/ChangeLog 2016-10-12 08:19:18 UTC (rev 26372)
@@ -1,3 +1,10 @@
+2016-10-12  Timo Pollmeier <timo.pollme...@greenbone.net>
+
+       * src/html/classic/omp.xsl (report-hosts-link): Get number of results
+       from "result_count" instead of "results" subelement of host.
+       (report [hosts]): Get number of ports from "port_count" instead of
+       "ports" subelement of host.
+
 2016-10-11  Timo Pollmeier <timo.pollme...@greenbone.net>
 
        * src/html/classic/omp.xsl (report-hosts-link): Change filter param

Modified: trunk/gsa/src/html/classic/omp.xsl
===================================================================
--- trunk/gsa/src/html/classic/omp.xsl  2016-10-12 08:18:56 UTC (rev 26371)
+++ trunk/gsa/src/html/classic/omp.xsl  2016-10-12 08:19:18 UTC (rev 26372)
@@ -32771,25 +32771,25 @@
         <xsl:value-of select="count(report/results/result)"/>
       </xsl:when>
       <xsl:when test="$name = 'All' or $name = 'All filtered' and $host">
-        <xsl:value-of select="$host/results/page"/>
+        <xsl:value-of select="$host/result_count/page"/>
       </xsl:when>
       <xsl:when test="$current_host = ''">
         <xsl:value-of select="count(report/results/result[threat/text() = 
$name])"/>
       </xsl:when>
       <xsl:when test="$name = 'High' and $host">
-        <xsl:value-of select="$host/results/hole/page"/>
+        <xsl:value-of select="$host/result_count/hole/page"/>
       </xsl:when>
       <xsl:when test="$name = 'Medium' and $host">
-        <xsl:value-of select="$host/results/warning/page"/>
+        <xsl:value-of select="$host/result_count/warning/page"/>
       </xsl:when>
       <xsl:when test="$name = 'Low' and $host">
-        <xsl:value-of select="$host/results/info/page"/>
+        <xsl:value-of select="$host/result_count/info/page"/>
       </xsl:when>
       <xsl:when test="$name = 'Log' and $host">
-        <xsl:value-of select="$host/results/log/page"/>
+        <xsl:value-of select="$host/result_count/log/page"/>
       </xsl:when>
       <xsl:when test="$name = 'False Positive' and $host">
-        <xsl:value-of select="$host/results/false_positive/page"/>
+        <xsl:value-of select="$host/result_count/false_positive/page"/>
       </xsl:when>
     </xsl:choose>
   </xsl:variable>
@@ -32965,7 +32965,7 @@
               </xsl:call-template>
             </td>
             <td>
-              <xsl:variable name="port-count" select="ports/page"/>
+              <xsl:variable name="port-count" select="port_count/page"/>
 
               <xsl:call-template name="report-ports-link">
                 <xsl:with-param name="report_id" select="$id"/>

_______________________________________________
Openvas-commits mailing list
Openvas-commits@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-commits

Reply via email to