提交 506b7dab 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'hotfix/cmsIndex' into 'master'

修复cms无法索引附件的bug

See merge request o2oa/o2oa!1928
......@@ -464,7 +464,7 @@ public class DocFunction {
StringBuilder builder = new StringBuilder();
builder.append(storageObject.getName());
try {
StorageMapping mapping = ThisApplication.context().storageMappings().get(Attachment.class,
StorageMapping mapping = ThisApplication.context().storageMappings().get(storageObject.getClass(),
storageObject.getStorage());
if (null != mapping) {
try (InputStream input = new ByteArrayInputStream(storageObject.readContent(mapping))) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册