Author: timopollmeier
Date: 2016-10-12 11:58:25 +0200 (Wed, 12 Oct 2016)
New Revision: 26378

Modified:
   branches/gsa-6.0/ChangeLog
   branches/gsa-6.0/src/html/classic/omp.xsl
Log:
        Backport r26372.

        * 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: branches/gsa-6.0/ChangeLog
===================================================================
--- branches/gsa-6.0/ChangeLog  2016-10-12 09:56:55 UTC (rev 26377)
+++ branches/gsa-6.0/ChangeLog  2016-10-12 09:58:25 UTC (rev 26378)
@@ -1,3 +1,12 @@
+2016-10-12  Timo Pollmeier <timo.pollme...@greenbone.net>
+
+       Backport r26372.
+
+       * 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>
 
        Backport r26359.

Modified: branches/gsa-6.0/src/html/classic/omp.xsl
===================================================================
--- branches/gsa-6.0/src/html/classic/omp.xsl   2016-10-12 09:56:55 UTC (rev 
26377)
+++ branches/gsa-6.0/src/html/classic/omp.xsl   2016-10-12 09:58:25 UTC (rev 
26378)
@@ -29331,25 +29331,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>
@@ -29477,7 +29477,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