Browse Source

- Fix a problem with the upgrade (case sensitive table name & prefix)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1598 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 năm trước cách đây
mục cha
commit
ea463edc17
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules/itop-attachments/module.attachments.php

+ 1 - 1
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())