diff --git a/modules/itop-attachments/module.attachments.php b/modules/itop-attachments/module.attachments.php index ad66a618d..2ae724e98 100644 --- a/modules/itop-attachments/module.attachments.php +++ b/modules/itop-attachments/module.attachments.php @@ -104,7 +104,7 @@ class AttachmentInstaller extends ModuleInstallerAPI CMDBSource::Query($sRepair); SetupWebPage::log_info("Initializing attachment/item_org_id - zero to the container"); - $oSearch = DBObjectSearch::FromOQL("SELECT `$sTableName` WHERE item_org_id = 0"); + $oSearch = DBObjectSearch::FromOQL("SELECT Attachment WHERE item_org_id = 0"); $oSet = new DBObjectSet($oSearch); $iUpdated = 0; while ($oAttachment = $oSet->Fetch())