瀏覽代碼

Archives: allow for the update of archive_flag even when in archive mode (therefore in read-only mode)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4700 a333f486-631f-4898-b8df-5754b55c2be0
romainq 8 年之前
父節點
當前提交
01e8083864
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      core/cmdbobject.class.inc.php

+ 4 - 0
core/cmdbobject.class.inc.php

@@ -618,7 +618,9 @@ abstract class CMDBObject extends DBObject
 
 		if (!$bOriginal)
 		{
+			utils::PushArchiveMode(false);
 			$this->RecordAttChange('archive_flag', false, true);
+			utils::PopArchiveMode();
 		}
 	}
 
@@ -630,7 +632,9 @@ abstract class CMDBObject extends DBObject
 
 		if ($bOriginal)
 		{
+			utils::PushArchiveMode(false);
 			$this->RecordAttChange('archive_flag', true, false);
+			utils::PopArchiveMode();
 		}
 	}
 }