Fix search of obsolete cached objects (#6041)

* Fix search of obsolete cached objects

* Update CHANGELOG.md
This commit is contained in:
Yuriy Bakhtin 2023-01-13 13:56:46 +04:00 committed by GitHub
parent c49309322f
commit 0d8b581adc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,7 @@ HumHub Changelog
- Fix #6027: Fix private user visibility by guest
- Fix #6030: Use all searchable profile fields in UserPicker searching
- Fix #6026: Fix visibility members counter for guests
- Fix #6041: Fix search of obsolete cached objects
1.13.0 (December 21, 2022)
--------------------------

View File

@ -52,6 +52,10 @@ class SearchResultSet
foreach ($this->results as $result) {
/** @var $modelClass ActiveRecord */
$modelClass = $result->model;
if (!class_exists($modelClass)) {
Yii::info('Could not find class ' . $modelClass, 'search');
continue;
}
try {
$instance = $modelClass::findOne(['id' => $result->pk]);
} catch (\Exception $ex) {