Skip to content

The parent block field of the blocks under the heading block is calculated incorrectly #9869

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

Closed
3 tasks done
Wetoria opened this issue Dec 13, 2023 · 0 comments
Closed
3 tasks done
Assignees
Labels
Milestone

Comments

@Wetoria
Copy link

Wetoria commented Dec 13, 2023

A sql hierarchy bug.

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

通过在文档标题后面回车创建新段落,然后输入 Markdown 的标题语法创建一个标题,这个标题后面的段落的父级,不会更新成这个标题的。

可以看到,图中前两条数据的 parent_id 依旧是文档的 id。
image

这是文档里的结构。

image

具体操作步骤:

  1. 预先在文档里输入任何内容
  2. 将光标放在文档的标题后面
  3. 然后输入 ## 标题2 (可以是任何层级)

很好复现的一个问题。


并且修改了段落中内容,也只是将段落跟 标题2 重新关联了。标题2标题1 的层级关系依旧不对。

image image

Expected result

正确数据层级

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.11.1
- Operating System: MacOS
- Browser (if used): -

Log file

siyuan.log

More information

No response

@88250 88250 changed the title A sql hierarchy bug. The parent block field of the blocks under the heading block is calculated incorrectly Dec 13, 2023
@88250 88250 self-assigned this Dec 13, 2023
@88250 88250 added the Bug label Jan 3, 2024
@88250 88250 added this to the 2.12.1 milestone Jan 3, 2024
88250 added a commit that referenced this issue Jan 3, 2024

Verified

This commit was signed with the committer’s verified signature.
…culated incorrectly #9869
88250 added a commit that referenced this issue Jan 3, 2024
@88250 88250 closed this as completed Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants