Created attachment 194338 [details] Example file with disappearing paragraph Attached document has a paragraph with a checkbox field and a mail merge field. When opened in Writer the paragraph is entirely hidden until View - Field Hidden Paragraphs is enabled. 1. Open attached document -> seems empty, but Navigator shows traces of field/bookmark 2. Choose View - Field Hidden Paragraphs (or: Options - Writer - Formatting Aids - Fields: Hidden paragraphs) -> Paragraph appears, including non-field content. Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community Build ID: 1b45ca1aa7d7cb8e7adcc07f8c60e26a413eca8c CPU threads: 14; OS: Windows 10 X86_64 (10.0 build 19045); UI render: default; VCL: win Locale: hu-HU (hu_HU); UI: en-US Calc: default Seems to have started in 6.1 with: https://git.libreoffice.org/core/+/db04be037b611e296ef9f2542322c52ed82d7a2b commit db04be037b611e296ef9f2542322c52ed82d7a2b [log] author Mike Kaganski <mike.kaganski@collabora.com> Fri May 18 18:48:38 2018 +0300 committer Mike Kaganski <mike.kaganski@collabora.com> Sun May 20 13:16:28 2018 +0200 tdf#35798: Hide empty Database fields' paragraphs (+ compat option) In 6.1, disabling the newly added "A database field with empty value hides its paragraph" option makes the paragraph appear even if the "Options - Writer - Formatting Aids - Fields: Hidden paragraphs" is disabled. In master, enabling Options - Writer - View - Hidden paragraphs is also necessary, so this may not be just about changing the default of the above compat option for RTF to disabled.
Created attachment 194339 [details] The example file in Word 2016 and in Writer master
Could confirm the buggy behavior. Existing text content shouldn't be hidden, if it isn't hidden in the rtf-file. It isn't the hidden paragraph. Content is also shown if "View" → "Field Names" is chosen.
Another bibisect in 7.3 shows that the UI behavior changed in: https://git.libreoffice.org/core/+/86d11097cd4a2ae4a6b4e6b35e28a6075376d67a author Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> Mon Oct 25 02:02:09 2021 +0200 committer Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> Fri Oct 29 03:00:47 2021 +0200 tree 104762ecf24daf8e4c617cc372310d642bc46929 parent cae107bab822acc198569750ae5b9a272f7ae996 [diff] use virtual function call for dynamic dispatch After this, changing the database field compat option in the Compatibility page does not show the paragraph, only changing the View - Field Hidden Paragraph or View - Field Names commands do. This may or may not be relevant, maybe just affects the UI working. Also the behavior is the same if the example is saved as docx in Word. So... maybe the paragraph hiding should not happen right after opening, only at mail merge?