Bug 153774

Summary: wrong page linked to "Evaluate up to level" option in Entries tab of Insert ToC/Index dialog
Product: LibreOffice Reporter: sdc.blanco
Component: DocumentationAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: olivier.hallot
Priority: medium    
Version: 7.6.0.0 alpha0+   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 120201    

Description sdc.blanco 2023-02-21 15:45:38 UTC
Insert - Table of Contents and Index - Table of Contents, Index, or Bibliography - Entries tab

Insert a Chapter No. in structure, then click on E# (which was just inserted).

Place cursor in spinbox for "Evaluate up to level" and press F1

Actual: https://help.libreoffice.org/7.6/en-US/text/swriter/01/04120222.html

Expected: https://help.libreoffice.org/7.6/en-US/text/swriter/01/04120221.html
Comment 1 sdc.blanco 2023-02-21 23:34:37 UTC
The OP should have specified that Type: Table of Contents was selected on the Type tab, before switching to the Entries tab.

I believe this problem arises because:

<bookmark xml-lang="en-US" branch="hid/modules/swriter/ui/tocentriespage/entryoutlinelevel" id="bm_id354930" localize="false"/>

appears on line 45 of source/text/swriter/01/04120222.xhp

The bookmark is part of the <eval> section, which gets embedded into   source/text/swriter/01/04120221.xhp (the help page for ToC).  

This probably explains why "Alphabetical Index" is shown.

But it gets worse.  The embedding in 04120221.xhp is part of the <format> section in that file, which gets embedded into 04120223.xhp (Illustration), 04120224.xhp (Tables), 04120225.xhp (user-defined), and 04120226.xhp (objects)
  -- so the same problem happens if these Types are selected on the Type tab, and then F1 is used in the "Evaluate up to level"

Note that "Evaluate up to level" is becoming "Show up to level" (bug 105628).
Comment 2 Olivier Hallot 2023-02-22 19:54:28 UTC
What is "OP" here? (and "DF" in another report?)
Comment 3 sdc.blanco 2023-02-22 22:07:35 UTC
OP is:  Place cursor in spinbox for "Evaluate up to level"  in Entries tab and press F1, where Type is "Table of Contents"