Remove obsolete property AbstractRichText::$record (#7211)

This commit is contained in:
Yuriy Bakhtin 2024-09-09 12:06:54 +03:00 committed by GitHub
parent f5eb868663
commit fa82ce32b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 3 additions and 7 deletions

View File

@ -27,6 +27,7 @@ HumHub Changelog
- Fix #7197: Increased version of `PHPOffice/PHPSpreadsheet` to v2.2+ - Fix #7197: Increased version of `PHPOffice/PHPSpreadsheet` to v2.2+
- Enh #7167: Disable DEBUG mode automatically after successful humhub installation. Add `.env` support - Enh #7167: Disable DEBUG mode automatically after successful humhub installation. Add `.env` support
- Enh #7202: Increased minimum PHP version to 8.1 - Enh #7202: Increased minimum PHP version to 8.1
- Enh #7211: Remove obsolete property `AbstractRichText::$record`
1.16.2 (September 5, 2024) 1.16.2 (September 5, 2024)
-------------------------- --------------------------

View File

@ -50,7 +50,7 @@ $module = Yii::$app->getModule('comment');
<div class="content comment_edit_content" id="comment_editarea_<?= $comment->id; ?>"> <div class="content comment_edit_content" id="comment_editarea_<?= $comment->id; ?>">
<div id="comment-message-<?= $comment->id; ?>" class="comment-message" data-ui-markdown data-ui-show-more <div id="comment-message-<?= $comment->id; ?>" class="comment-message" data-ui-markdown data-ui-show-more
data-read-more-text="<?= Yii::t('CommentModule.base', 'Read full comment...') ?>"> data-read-more-text="<?= Yii::t('CommentModule.base', 'Read full comment...') ?>">
<?= RichText::output($comment->message, ['record' => $comment]); ?> <?= RichText::output($comment->message) ?>
</div> </div>
<?= ShowFiles::widget(['object' => $comment]); ?> <?= ShowFiles::widget(['object' => $comment]); ?>
</div> </div>

View File

@ -144,11 +144,6 @@ abstract class AbstractRichText extends JsWidget
*/ */
protected static $converterClass; protected static $converterClass;
/**
* @var mixed can be used to identify the related record
*/
public $record;
/** /**
* @var array of richtext extension classes used for preparing and post processing output and converter result * @var array of richtext extension classes used for preparing and post processing output and converter result
* @since 1.8 * @since 1.8

View File

@ -23,6 +23,6 @@ $isDetailView = $renderOptions->isViewContext(WallStreamEntryOptions::VIEW_CONTE
data-collapse-at="<?= $collapsedPostHeight ?>" data-collapse-at="<?= $collapsedPostHeight ?>"
<?php endif; ?> <?php endif; ?>
> >
<?= RichText::output($post->message, ['record' => $post]) ?> <?= RichText::output($post->message) ?>
</div> </div>
</div> </div>