Skip to content

Commit 3cc2f7f

Browse files
committed
Fixed problem, that in the database updated log entries in the log, the wrong old version was shown.
1 parent 8b014a8 commit 3cc2f7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Database.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ public function update($continue_last_attempt = true)
354354
};
355355

356356
$current = $this->getCurrentVersion();
357+
$old_current = $this->getCurrentVersion(); //This one is used for the Database Update log entry
357358
$latest = $this->getLatestVersion();
358359

359360
if ($this->transaction_active) {
@@ -528,7 +529,7 @@ public function update($continue_last_attempt = true)
528529
//Try to create an DatabaseUpdateEntry Log entry
529530
try {
530531
$l = new Log($this);
531-
DatabaseUpdatedEntry::add($this, User::getLoggedInUser(),$l, $current, $latest, !$error);
532+
DatabaseUpdatedEntry::add($this, User::getLoggedInUser(),$l, $old_current, $latest, !$error);
532533
} catch (Exception $ex) {
533534
//When an error happen, the DB log table was not created yet. There is nothing we can do here, so do nothing.
534535
}

0 commit comments

Comments
 (0)