mirror of
https://gitee.com/liweiyi/ChestnutCMS.git
synced 2025-12-06 16:38:24 +08:00
Fixed: create content index fail when publish site.
This commit is contained in:
parent
21d93d92fe
commit
24b9fbe5f0
@ -138,6 +138,10 @@ public class ArticleContent extends AbstractContent<CmsArticleDetail> {
|
||||
if (this.getContentEntity().isLinkContent()) {
|
||||
return super.getFullText();
|
||||
}
|
||||
if (this.hasExtendEntity() && Objects.isNull(this.getExtendEntity())) {
|
||||
CmsArticleDetail articleDetail = this.getArticleService().dao().getById(this.getContentEntity().getContentId());
|
||||
this.setExtendEntity(articleDetail);
|
||||
}
|
||||
return super.getFullText() + StringUtils.SPACE + HtmlUtils.clean(this.getExtendEntity().getContentHtml());
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user