Commit 069eec81e1325b3c06956a38768cea68546bcf36
1 parent
6c73b7ec
Immutable copy of document not immutable
Jarrett Jordaan Megan Watson
Showing
1 changed file
with
2 additions
and
1 deletions
lib/documentmanagement/documentutil.inc.php
| ... | ... | @@ -1148,7 +1148,8 @@ $sourceDocument->getName(), |
| 1148 | 1148 | $aCoreRow = DBUtil::getOneResult(array($sQuery, $aParams)); |
| 1149 | 1149 | // we unset the id as a new one will be created on insert |
| 1150 | 1150 | unset($aCoreRow['id']); |
| 1151 | - | |
| 1151 | + // we unset immutable since a new document will be created on insert | |
| 1152 | + unset($aCoreRow['immutable']); | |
| 1152 | 1153 | // get a copy of the latest metadata version for the copied document |
| 1153 | 1154 | $iOldMetadataId = $aCoreRow['metadata_version_id']; |
| 1154 | 1155 | $sMetadataTable = KTUtil::getTableName('document_metadata_version'); | ... | ... |