From 21f542a1898d7c1ef1f8c39cd229a70edd77096d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 24 Dec 2004 10:24:35 +0000 Subject: [PATCH] r25: Fixed bug in version validation that would incorrectly throw an error if you set a global version. --- newreport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newreport.php b/newreport.php index 2ca571b..7aefc9f 100755 --- a/newreport.php +++ b/newreport.php @@ -122,7 +122,7 @@ if ($_POST['do'] == 'insert') if ($component['componentmother'] == $product['productid']) { // version.productid != {component.productid | product.productid} - if ($version['productid'] != $component['productid'] AND $version['productid'] != $product['productid']) + if (($version['productid'] != $component['productid'] AND $version['productid'] != $product['productid']) AND $version['productid'] != 0) { echo 'invalid version specified'; exit; -- 2.22.5