Bug 159942 - Cross reference "Refer using" cannot select definitive artlce versions if the Name is non-local (eg. in master document setup)
Summary: Cross reference "Refer using" cannot select definitive artlce versions if the...
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-28 16:17 UTC by Peter Gervai
Modified: 2024-04-08 03:14 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Gervai 2024-02-28 16:17:29 UTC
Description:
Interestingly definitive article versions aren't even in the Help, but at least in Hungarian it works like I have "usual" refers then each of them have a definitive article pair like "Article A/Az + Chapter".

However these, while selectable, do not get saved, and they jump back to article-less version. This is bad (the UI shows different state than what's saved, which is very confusing), and of course it makes impossible to use these within a master document (where it refers to a bookmark in a different document part).

This probably always have worked this way, but I thought I'm crazy (tried to set it and jumped back) and haven't used master docs too often. 

Steps to Reproduce:
1.Use Hungarian as document language: Tools » Options » Language » Formats: Locale setting: Hungarian
2.Insert » Cross reference » Bookmarks
3.Choose "Article a/az + Chapter", Name: "something elsewhere", Insert. Close.
4.Double-click on it again and realise that it's set to "Chapter"

Actual Results:
Cannot save articled version. Cannot use it in master documents.

Expected Results:
Would work.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
(Sidenote: this interface is pretty "broken" anyway: when one enter the name (as a non-exitant string, in step 3) and accidentally unfocus the window the string will disapper, and has to be re-typed. It's pretty annoying with mouse-follow-focus and accidental mouse movement.)
Comment 1 Peter Gervai 2024-02-28 16:19:54 UTC
It seems I cannot write clean English, sorry.
So this happens when the cross reference refers to a bookmark (name) outside the current document part (of a master document, but it can be tested in normal document, too).
Comment 2 Peter Gervai 2024-02-28 16:46:44 UTC
Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: 420(Build:3)
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: hu-HU (en_US.UTF8); UI: en-US
Debian package version: 4:24.2.0-1
Calc: threaded
Comment 3 Dieter 2024-04-07 10:36:15 UTC
Peter, thank ypu for reporting the problem. I'm niot sure, if I understand everything.

My steps:
1. Open a new document, write some words and insert a bookmark.
2. Save and close document
3. Open a second document -> Insert -> Hyperlink -> first document -> select bookmark as target

Actual and expected result:
First docume is opened with focus on bookmark

Cross-references need a target within the actual document. so if you want so insert a link to a bookmark in an external document, you have to insert a hyperlink.

Does this solve your problem?

=> NEEDINFO