Author: bricks Date: 2016-10-12 12:26:11 +0200 (Wed, 12 Oct 2016) New Revision: 26379
Modified: trunk/gsa/ChangeLog trunk/gsa/src/gsad_omp.c trunk/gsa/src/html/classic/omp.xsl Log: * src/gsad_omp.c (create_target_omp), * src/html/classic/omp.xsl (html-create-target-form): Use "0" as default for empty value instead of "--". Modified: trunk/gsa/ChangeLog =================================================================== --- trunk/gsa/ChangeLog 2016-10-12 09:58:25 UTC (rev 26378) +++ trunk/gsa/ChangeLog 2016-10-12 10:26:11 UTC (rev 26379) @@ -1,5 +1,11 @@ 2016-10-12 Bj�rn Ricks <bjoern.ri...@greenbone.net> + * src/gsad_omp.c (create_target_omp), + * src/html/classic/omp.xsl (html-create-target-form): Use "0" as default for + empty value instead of "--". + +2016-10-12 Bj�rn Ricks <bjoern.ri...@greenbone.net> + * src/gsad_omp.c (create_target_omp): Fix checking hosts_filter parameter. The hosts_filter parameter is only required and used if target_source is set to asset_hosts. Modified: trunk/gsa/src/gsad_omp.c =================================================================== --- trunk/gsa/src/gsad_omp.c 2016-10-12 09:58:25 UTC (rev 26378) +++ trunk/gsa/src/gsad_omp.c 2016-10-12 10:26:11 UTC (rev 26379) @@ -9716,7 +9716,7 @@ else comment_element = g_strdup (""); - if (strcmp (target_ssh_credential, "--") == 0) + if (strcmp (target_ssh_credential, "0") == 0) ssh_credentials_element = g_strdup (""); else ssh_credentials_element = @@ -9726,21 +9726,21 @@ target_ssh_credential, port); - if (strcmp (target_smb_credential, "--") == 0) + if (strcmp (target_smb_credential, "0") == 0) smb_credentials_element = g_strdup (""); else smb_credentials_element = g_strdup_printf ("<smb_credential id=\"%s\"/>", target_smb_credential); - if (strcmp (target_esxi_credential, "--") == 0) + if (strcmp (target_esxi_credential, "0") == 0) esxi_credentials_element = g_strdup (""); else esxi_credentials_element = g_strdup_printf ("<esxi_credential id=\"%s\"/>", target_esxi_credential); - if (strcmp (target_snmp_credential, "--") == 0) + if (strcmp (target_snmp_credential, "0") == 0) snmp_credentials_element = g_strdup (""); else snmp_credentials_element = Modified: trunk/gsa/src/html/classic/omp.xsl =================================================================== --- trunk/gsa/src/html/classic/omp.xsl 2016-10-12 09:58:25 UTC (rev 26378) +++ trunk/gsa/src/html/classic/omp.xsl 2016-10-12 10:26:11 UTC (rev 26379) @@ -14816,7 +14816,7 @@ <td><xsl:value-of select="gsa:i18n ('SMB')"/></td> <td> <select name="smb_credential_id"> - <option value="--">--</option> + <option value="0">--</option> <xsl:apply-templates select="$credentials/credential [type = 'up']" mode="select"> <xsl:with-param name="select_id" select="smb_credential_id"/> </xsl:apply-templates> @@ -14831,7 +14831,7 @@ <td><xsl:value-of select="gsa:i18n ('ESXi')"/></td> <td> <select name="esxi_credential_id"> - <option value="--">--</option> + <option value="0">--</option> <xsl:apply-templates select="$credentials/credential [type = 'up']" mode="select"> <xsl:with-param name="select_id" select="esxi_credential_id"/> </xsl:apply-templates> @@ -14846,7 +14846,7 @@ <td><xsl:value-of select="gsa:i18n ('SNMP')"/></td> <td> <select name="snmp_credential_id"> - <option value="--">--</option> + <option value="0">--</option> <xsl:apply-templates select="$credentials/credential [type = 'snmp']" mode="select"> <xsl:with-param name="select_id" select="snmp_credential_id"/> </xsl:apply-templates>
_______________________________________________ Openvas-commits mailing list Openvas-commits@wald.intevation.org https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-commits