Bug 101803 - Loss of hide with condition for a section when having a (second?) section at the end of the document
Summary: Loss of hide with condition for a section when having a (second?) section at ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Reported: 2016-08-30 15:52 UTC by riesslibo
Modified: 2021-04-14 08:04 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

Template for reproducing with described steps (24.23 KB, application/vnd.oasis.opendocument.text-template)
2016-08-30 15:53 UTC, riesslibo
result Document when having added a second section and the lost condition of the first section with hide condition (24.06 KB, application/vnd.oasis.opendocument.text)
2016-08-30 15:54 UTC, riesslibo

Note You need to log in before you can comment on or make changes to this bug.
Description riesslibo 2016-08-30 15:52:16 UTC
Build ID: 7a864d8825610a8c07cfc3bc01dd4fce6a9447e5
CPU Threads: 8; OS Version: Windows 6.1; UI Render: default; 
Locale: de-DE (de_DE); Calc: single

Problem statement / Description:

Having a document with a user field for managing a hidden section and a consecutive section (for the purpose of write protection) after inserting the second section it will loss the condition statement with the user field when changing the value of the user field

Steps to reproduce:

1. take the example document example4lostConditionSection.ott (it is a template for multiple reproducemnt of the bug)

2. open a document of the template (double click on it)

3. save as result.odt (see that there is a paragraph written in red)

4. verify in menu fields - variables - userfield there is one defined with the name showSection and the value 1  (the variable is positioned in the first line of teh document)

5. change the value of the userfield showSection to 0 and verify, that the red written paragraph is gone (it is a section with a hide with condition showSection == 0)

6. Change the value of the userfield to 1, the paragraph written in red is shown
(Please do not use the navigator in the sidebar to look after the sections, it seems that there is a dependency on it)

7. now select the whole last paragraph and define a second section with write protection on it and klick ok for it, save the document

8. now change the value of the showSection again, no hide Action is performed any longer

9. if you now use the navigator and have a look at the section with the hide with condition, you see that the condition statement changed to just "0", the variable name and the condition == is gone (see as result the attached document resultLostCondition.odt)

Expected behaviour
The mechanism of hiding the section is untouched and working still correct when inserting another section in the document
Comment 1 riesslibo 2016-08-30 15:53:14 UTC
Created attachment 127083 [details]
Template for reproducing with described steps
Comment 2 riesslibo 2016-08-30 15:54:42 UTC
Created attachment 127084 [details]
result Document when having added a second section and the lost condition of the first section with hide condition
Comment 3 Cor Nouws 2016-09-03 10:59:08 UTC
Hi Lothar,

Thanks - can confirm the problem. Already in /, but those are not so reliable in hiding the section with your step 5...

Do you know a version where it worked fine?

I tried with a paragraph in between the sections and some more variations, section without protection. Turns out that when there is a (empty) paragraph after place where you insert the section, that it works fine.
Can you pls check that?
Comment 4 QA Administrators 2017-12-21 03:37:13 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2019-12-22 03:28:46 UTC
Dear riesslibo,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)

If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword

Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

Comment 6 Gabriele Ponzo 2021-04-14 08:04:19 UTC
I can confirm that the bug is still present in version
Moreover it behaves the same wrong way regardless of setting a condition or not: as far as a section becomes hidden, for whatever reason, it won't be visible anymore in any way.
Should I open a different bug for this?

Version: / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: it-IT (it_IT.UTF-8); UI: en-GB
Ubuntu package version: 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
Calc: threaded