From 12ea52ae72979fc3fec6e0720d5cd05499bd5d04 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Tue, 10 Feb 2026 17:14:08 +0100 Subject: [PATCH] Fix incorrect column name in bulk_container.php count query The count() was referencing RowID which does not exist in fac_CabRow table. The correct column name is CabRowID, matching the table's primary key. This was causing a 500 error on bulk container import. Fixes #1519 --- bulk_container.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bulk_container.php b/bulk_container.php index 4f0c5f110..304e74484 100644 --- a/bulk_container.php +++ b/bulk_container.php @@ -223,7 +223,7 @@ // Rows are also optional if ( $row["Row"] != "" && $DataCenterID > 0 ) { - $st = $dbh->prepare( "select count(RowID) as TotalMatches, CabRowID from fac_CabRow where DataCenterID=:DataCenterID and ZoneID=:ZoneID and ucase(Name)=ucase(:Name)" ); + $st = $dbh->prepare( "select count(CabRowID) as TotalMatches, CabRowID from fac_CabRow where DataCenterID=:DataCenterID and ZoneID=:ZoneID and ucase(Name)=ucase(:Name)" ); $st->execute( array( ":DataCenterID"=>$DataCenterID, ":ZoneID"=>$ZoneID, ":Name"=>$row["Row"] )); if ( ! $val = $st->fetch() ) { $info = $dbh->errorInfo();