Bug 152920 - LO Writer: User Input fields in header or footer not visible in freshly opened documents
Summary: LO Writer: User Input fields in header or footer not visible in freshly opene...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.0.0.alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Writer-Header-Footer
  Show dependency treegraph
 
Reported: 2023-01-07 21:36 UTC by Detlef Girke
Modified: 2023-05-15 12:18 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Bug Description with Screenshots. (1.58 MB, application/pdf)
2023-01-07 22:54 UTC, Detlef Girke
Details
Sample file with user input field in header and footer. (18.33 KB, application/vnd.oasis.opendocument.text)
2023-01-13 10:52 UTC, Detlef Girke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Detlef Girke 2023-01-07 21:36:56 UTC
Description:
Relates to bug 152919 (https://bugs.documentfoundation.org/show_bug.cgi?id=152919)
After inserting User Input fields into header or footer the content of these fields isn´t visible when a document is freshly opened. F9 needs to be pressed to make them visible again.

Steps to Reproduce:
1. Go to "Insert - Field - More Fields" or simply press CTRL+F2.
2. Select the Tab "Variables".
3. Select "User Field" on the left (box with the heading "Type").
4. Fill out "Name" and "Value" afterwards. Then click on the green checkmark behind to save the new User field.
5. Select "Input field" under "Type".
6. Now you can insert the selected User field as an Input field into the document. You can do this as many times as you want.
7. Choose Insert - Header and Footer - Header
8. Insert the same User field as an Input field as described above.
9. Save an close the document.
10. Open the document.

Actual Results:
The User Input field in the header does not appear after the document was freshly opened.
F9 needs to be pressed to make it appear again.

Expected Results:
All User Input fields are visible (and automatically update when they are edited as described in bug 152919) like in all Versions of LO until 7.2.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Affects to all versions of LO Writer since 7.3.
Comment 1 Detlef Girke 2023-01-07 22:54:12 UTC
Created attachment 184521 [details]
Bug Description with Screenshots.
Comment 2 Mirriam Jon 2023-01-13 09:50:34 UTC
In LibreOffice Writer, if you are unable to see user input fields in the header or footer of newly opened documents, it could be due to a few possible causes:

The fields may not be set to be visible by default. To check this, go to View > Header and Footer, and make sure that the "Fields" option is checked.

The fields may have been hidden using the "Hidden" option in the Field dialog box. To check this, right-click on the field and select "Field" from the context menu. In the dialog box that appears, make sure the "Hidden" option is not checked. I just got the information from https://www.usanewsglobal.com/ website today!
Comment 3 Detlef Girke 2023-01-13 10:52:10 UTC
Created attachment 184632 [details]
Sample file with user input field in header and footer.

Please open this file in a version of LO before 7.3 (the last one was 7.2.7.2 I assume). You will immediately see the user input fields in header, footer and the content. Change the value directly in one of the fields. You do not need to doubleclick one of the fields or anything else. You can go into the fields just by using the arrow keys or by carefully clicking once(!) into one of them. Then, while editing, you will see all the other fields change simultaneously. That´s the expected behaviour since the first version of LO.
Now open the file in LO 7.3 or anything above. The fields in header and footer won´t be visible at all. You will have to click "Tools --> Update --> Fields" or simply F9 to update the fields manually. I tried almost every version on any operating system (macOS, Windows, Linux). Everywhere the same behaviour.
Comment 4 Detlef Girke 2023-01-13 11:00:50 UTC
(In reply to Mirriam Jon from comment #2)
> In LibreOffice Writer, if you are unable to see user input fields in the
> header or footer of newly opened documents, it could be due to a few
> possible causes:
> 
> The fields may not be set to be visible by default. To check this, go to
> View > Header and Footer, and make sure that the "Fields" option is checked.
> 
> The fields may have been hidden using the "Hidden" option in the Field
> dialog box. To check this, right-click on the field and select "Field" from
> the context menu. In the dialog box that appears, make sure the "Hidden"
> option is not checked. I just got the information from
> https://www.usanewsglobal.com/ website today!

Are you sure you´re in Writer? I could not find any of your recommended paths. Please try it out by yourself using the sample file I uploaded or follow the steps I described to reproduce the bug. Thanks.
Comment 5 Robert Großkopf 2023-01-13 15:44:31 UTC
Could reproduce the buggy behavior. Appears first in 
Version: 7.3.0.3 / LibreOffice Community
Build ID: 0f246aa12d0eee4a0f7adcefbf7c878fc2238db3
CPU threads: 6; OS: Linux 5.3; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded

In LO 7.2.5.2 the field will appear in the header and the footer, so a regression.
Comment 6 raal 2023-01-17 19:43:40 UTC
This seems to have begun at the below commit.
Adding Cc: to Bjoern Michaelsen; Could you possibly take a look at this one?
Thanks
 d9deeb29e64dadb343236287bf6a0a77a27eda8c is the first bad commit
commit d9deeb29e64dadb343236287bf6a0a77a27eda8c
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Fri Oct 29 03:07:50 2021 +0200

    source 86d11097cd4a2ae4a6b4e6b35e28a6075376d67a

https://gerrit.libreoffice.org/c/core/+/124131
Comment 7 radhamese3 2023-05-09 09:27:50 UTC Comment hidden (spam)