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

SVN:trunk[4700]
This commit is contained in:
Romain Quetiez
2017-04-27 08:45:07 +00:00
parent 8e046cafda
commit de2eed5187

View File

@@ -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();
}
}
}