Fix #5832: Exception in file open dialog when last update user no longer exists (#5833)

This commit is contained in:
Lucas Bartholemy 2022-08-08 16:25:28 +02:00 committed by GitHub
parent df64d6de4f
commit 73181e1333
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@ HumHub Changelog
---------------------- ----------------------
- Fix #5822: Fix content width in mobile view - Fix #5822: Fix content width in mobile view
- Fix #5825: Fix format date to mysql on date stream filter - Fix #5825: Fix format date to mysql on date stream filter
- Fix #5832: Exception in file open dialog when last update user no longer exists
- Fix #5814: Fix numerated lists in mail summary content - Fix #5814: Fix numerated lists in mail summary content
- Fix #5830: Fix cron job of search index rebuilding - Fix #5830: Fix cron job of search index rebuilding

View File

@ -33,7 +33,7 @@ use humhub\modules\file\widgets\FileHandlerButtonDropdown;
<p style="line-height:20px"> <p style="line-height:20px">
<strong><?= Yii::t('FileModule.base', 'Size:'); ?></strong> <?= Yii::$app->formatter->asShortSize($file->size, 1); ?><br /> <strong><?= Yii::t('FileModule.base', 'Size:'); ?></strong> <?= Yii::$app->formatter->asShortSize($file->size, 1); ?><br />
<strong><?= Yii::t('FileModule.base', 'Created by:'); ?></strong> <?= Html::encode($file->createdBy->displayName); ?> (<?= Yii::$app->formatter->asDatetime($file->created_at, 'short'); ?>)<br /> <strong><?= Yii::t('FileModule.base', 'Created by:'); ?></strong> <?= Html::encode($file->createdBy->displayName); ?> (<?= Yii::$app->formatter->asDatetime($file->created_at, 'short'); ?>)<br />
<?php if (!empty($file->updated_at) && $file->updated_at != $file->created_at) : ?> <?php if (!empty($file->updatedBy) && $file->updated_at != $file->created_at) : ?>
<strong><?= Yii::t('FileModule.base', 'Last update by:') ?></strong> <?= Html::encode($file->updatedBy->displayName); ?> (<?= Yii::$app->formatter->asDatetime($file->updated_at, 'short'); ?>)<br/> <strong><?= Yii::t('FileModule.base', 'Last update by:') ?></strong> <?= Html::encode($file->updatedBy->displayName); ?> (<?= Yii::$app->formatter->asDatetime($file->updated_at, 'short'); ?>)<br/>
<?php endif; ?> <?php endif; ?>
</p> </p>