Skip to content

Commit 88d9881

Browse files
authored
Update libraries/src/Versioning/VersionableModelTrait.php
1 parent a509244 commit 88d9881

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/src/Versioning/VersionableModelTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ public function loadHistory(int $historyId)
115115
return false;
116116
}
117117

118+
$table = $this->getTable();
119+
118120
// We set checked_out to the current user
119121
if ($table->hasField('checked_out')) {
120122
$rowArray[$table->getColumnAlias('checked_out')] = $this->getCurrentUser()->id;

0 commit comments

Comments
 (0)