Fix the problem of post list is incomplete due to no recursive query categories #1781
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does?
修复由于
根据分类id查询文章时
方法内没有查询该分类的子分类下的文章导致状态没有更新问题场景如下:
1、创建一个分类A,进行加密
2、创建一个分类B,挂在分类A下
3、发布一个新的文章: 文章1, 挂在分类B下
Why we need it?
修复 #1779 但没有完全修复,该问题的第
6、重选 文章1 的分类, 重新进行发布,文章1 的状态仍然为“私密”
的问题无法在1.5.x解决,需要将status
字段的职能拆分才可以。所以该问题无法在现有表结构基础上解决,且1.5.x不再进行大的改动,结合以上矛盾点该 Issue 将被挂起到 2.0 milestone 彻底解决。
How to test it?
分类1
及子分类分类1-1
test1
test1
所属分类1-1
分类1
设置一个密码test1
为加密状态分类1
的密码test1
为草稿状态/cc @halo-dev/sig-halo