Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

搜索标签中,如果指定了不存在的栏目id,会导致搜不出任何结果 #3682

Closed
fsea opened this issue Sep 9, 2023 · 2 comments

Comments

@fsea
Copy link

fsea commented Sep 9, 2023

并且/api/stl/actions/search会报400错误,
<stl:search type="title,body" channelIds="不存在id" isHighlight="true">
经过排查应该是SSCMS.Core\Repositories\ContentRepository.Get.cs中的public async Task GetQueryByStlSearchAsync(IDatabaseManager databaseManager, bool isAllSites, string siteName, string siteDir, string siteIds, string channelIndex, string channelName, string channelIds, string type, string word, string dateAttribute, string dateFrom, string dateTo, string since, int siteId, List excludeAttributes, NameValueCollection form)方法:
image
如果theChannel=null则下一行会报错

@starlying
Copy link
Contributor

收到,我们修复一下,谢谢反馈

@starlying
Copy link
Contributor

问题已修复,谢谢。

@fsea fsea closed this as completed Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants