Bug 141029 - Unable to delete form in form navigator if it contain hidden field
Summary: Unable to delete form in form navigator if it contain hidden field
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0 all versions
Hardware: All Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Navigator
  Show dependency treegraph
 
Reported: 2021-03-14 19:00 UTC by Matheod
Modified: 2023-10-09 22:01 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Files with the bug (8.76 KB, application/vnd.oasis.opendocument.text)
2021-03-29 07:54 UTC, Matheod
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matheod 2021-03-14 19:00:38 UTC
- Open a new writer document
- open form browser
- right click on the root to create a form
- right click on the form to add an hidden field
- try to delete the form

What happen :
- Nothing (with no error message), the form is not deleted

What should happen :
- Either delete the form, or show a message saying that all hidden field must be deleted before being able to delete the form

Additionnal information :
- If the hidden field is deleted, we can then delete the form
Comment 1 Dieter 2021-03-29 06:17:56 UTC
Thank you for reporting the bug. But I'm not sure for 100%, what you mean with "form browser".  So please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it)
Comment 2 Matheod 2021-03-29 07:54:17 UTC
Created attachment 170803 [details]
Files with the bug
Comment 3 Matheod 2021-03-29 07:55:19 UTC
The english name is "form navigator". You can found it in the form menu.
Comment 4 Dieter 2021-03-29 17:01:05 UTC
(In reply to Matheod from comment #2)
> Created attachment 170803 [details]
> Files with the bug

Matheod, please check the file. It is empty.
=> NEEDINFO
Comment 5 Matheod 2021-03-29 17:06:55 UTC
(In reply to Dieter from comment #4)
> (In reply to Matheod from comment #2)
> > Created attachment 170803 [details]
> > Files with the bug
> 
> Matheod, please check the file. It is empty.
> => NEEDINFO

It's normal, I just did the step which create a form and an hidden field so nothing visible. You can see those two thing in the form navigator, but the best way to understand it is to create the document yourself with the form navigator.
Comment 6 pipedreamzero 2021-04-14 16:49:11 UTC
Reproducible both on 
Version: 7.1.2.2 / LibreOffice Community
Build ID: 8a45595d069ef5570103caea1b71cc9d82b2aae4
CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: ru-RU (ru_RU.UTF-8); UI: en-US
Calc: threaded

and on 
Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 27911b0455d8dcc08a0702372492a6ce00250cb7
CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: ru-RU (ru_RU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-04-12_15:34:11
Calc: threaded
Comment 7 QA Administrators 2023-04-15 03:27:09 UTC Comment hidden (obsolete)
Comment 8 Kira Tubo 2023-10-09 22:01:06 UTC
Steps to reproduce with attachment: 

1. Open attachment 170803 [details]
2. Make sure Form > Design Mode is enabled
3. Go to Form > Form Navigator
4. Right click on "Form" and click "Delete"

Expected: Form is deleted

Actual: Form is not deleted. The "Hidden control" must be deleted first before the Form can be deleted. Users can delete the Form only if visible controls (like a Text Box) are in the Form, but not hidden controls. 

Reproduced in:

Version: 6.0.0.0.alpha1+
Build ID: 6eeac3539ea4cac32d126c5e24141f262eb5a4d9
CPU threads: 6; OS: Windows 10.0; UI render: GL; 
Locale: en-US (en_US); Calc: CL

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 36163d269bd8f77a86605e4c5ff5adce17b4c66c
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded