Browse Source

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 năm trước cách đây
mục cha
commit
01e8083864
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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();
 		}
 	}
 }