Ensure versions history are retrieved by id - Refs issue #1356
This commit is contained in:
parent
364809a38e
commit
e65f5c3c04
|
|
@ -390,13 +390,8 @@ class VersionManager
|
|||
return $this->databaseHistory[$code];
|
||||
}
|
||||
|
||||
$historyInfo = Db::table('system_plugin_history')->where('code', $code)->get();
|
||||
$historyInfo = Db::table('system_plugin_history')->where('code', $code)->orderBy('id','ASC')->get();
|
||||
|
||||
if (is_array($historyInfo)) {
|
||||
usort($historyInfo, function ($a, $b) {
|
||||
return version_compare($a->version, $b->version);
|
||||
});
|
||||
}
|
||||
return $this->databaseHistory[$code] = $historyInfo;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue