Skip to content

Commit

Permalink
Fix issue in report fac_Device.Reservation does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
timlegge committed Oct 31, 2019
1 parent af93bfe commit 81f113e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report_asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function Footer() {
if ( $DataCenterID > 0 )
$Criteria .= 'b.DataCenterID=\'' . intval( $DataCenterID ) . '\' and ';

$searchSQL = 'select a.Name,b.Location,c.Position,c.Height,c.Label,c.SerialNo,c.AssetTag,c.DeviceID,c.DeviceType from fac_DataCenter a, fac_Cabinet b, fac_Device c where ' . $Criteria . 'c.ParentDevice=0 and c.Cabinet=b.CabinetID and b.DataCenterID=a.DataCenterID and c.Reservation=false order by a.Name,b.Location,c.Position';
$searchSQL = 'select a.Name,b.Location,c.Position,c.Height,c.Label,c.SerialNo,c.AssetTag,c.DeviceID,c.DeviceType from fac_DataCenter a, fac_Cabinet b, fac_Device c where ' . $Criteria . 'c.ParentDevice=0 and c.Cabinet=b.CabinetID and b.DataCenterID=a.DataCenterID order by a.Name,b.Location,c.Position';

$lastDC = '';
$lastCab = '';
Expand Down

0 comments on commit 81f113e

Please sign in to comment.