bizley/yii2-podium

Error on edit preview

triboe opened this issue · 4 comments

Getting unknown property: bizley\podium\models\Post::post

<?php if (!empty($preview)): ?>
<div class="row">
    <div class="col-sm-10 col-sm-offset-1">
        <?= Alert::widget([
            'body' => '<strong><small>' 
                        . Yii::t('podium/view', 'Post Preview') 
                        . '</small></strong>:<hr>' 
                        . $model->post, 
            'options' => ['class' => 'alert-info']
        ]); ?>
    </div>
</div>
<?php endif; ?>

Which version of Podium is this and where does this error occur? Is it post edit?

Podium 0.6 on Yii 2.0.10
Edit post, then Preview (New post/Preview works, both editors)
This line marked in error log (above)
. $model->post,

(BTW Reply with quote: nothing happens)

Confirm.
There should be $model->content instead of $model->post

Actually it's $model->parsedContent.

@triboe
It's fixed now in dev-master (0.7). d949899
Trigger on "Reply with quote" has been corrected as well. 80a062c