mirror of
https://gitee.com/liweiyi/ChestnutCMS.git
synced 2025-12-07 17:08:23 +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()) {
|
if (this.getContentEntity().isLinkContent()) {
|
||||||
return super.getFullText();
|
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());
|
return super.getFullText() + StringUtils.SPACE + HtmlUtils.clean(this.getExtendEntity().getContentHtml());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user