Bug 155123 - XML Form Document: Deleting parts of user defined data type impossible.
Summary: XML Form Document: Deleting parts of user defined data type impossible.
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: All All
: medium minor
Assignee: Julien Nabet
URL:
Whiteboard: target:7.6.0
Keywords:
Depends on:
Blocks: XML_Form
  Show dependency treegraph
 
Reported: 2023-05-02 10:05 UTC by Robert Großkopf
Modified: 2023-09-19 13:30 UTC (History)
3 users (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 Robert Großkopf 2023-05-02 10:05:25 UTC
Have a look at 
https://bugs.documentfoundation.org/attachment.cgi?id=187049

There are two fields with user defined data types.
Take the first field an let you show the properties for this field. Design mode has to be set to 'on' in the toolbar "form design".
Try to delete the entry for "Length (at most)", because it isn't needed.
It is impossible to delete the entry. '5' will always reappear. You could set it to '4' (which does conflict with the other entries …). But you couldn't set it blank. If you try to set it '0' the '0' will disappear and '5' will reappear.

Only possibility I found: Delete the user defined data type and create a new one.
Comment 1 Buovjaga 2023-05-12 14:47:18 UTC
Repro also in 5.2, 4.1.

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 39b25518ce96a50f54459f681edcb95057507251
CPU threads: 8; OS: Linux 6.3; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 12 May 2023
Comment 2 Julien Nabet 2023-05-14 19:28:47 UTC
I gave a try with https://gerrit.libreoffice.org/c/core/+/151740.

To remove the information with the patch applied, you must select 0 then when clicking on another field, the "0" disappear and let the previous field empty.

I would have preferred to be able to remove the content directly but LO retrieves "0" in a way.

I must recognize that changing something in extensions is a bit like playing the sorcerer's apprentice for me, hope it won't back fire...

Caolán: any thoughts here? I mean, even in forms part of the quoted patch, I wonder if there won't be any wrong side effects somewhere.
Comment 3 Commit Notification 2023-05-18 10:40:38 UTC
Julien Nabet committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/0138745f0206f348644fd6d47c7316c8190d711b

tdf#155123: XML Form: Deleting parts of user defined data type impossible

It will be available in 7.6.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Julien Nabet 2023-05-18 10:42:27 UTC
Robert: I finally pushed this one so you can give it a try. If you see some regressions or weird things which may be related to this, don't hesitate to tell. Perhaps we'll have to revert this.
Comment 5 Julien Nabet 2023-09-19 13:30:03 UTC
Let's put this one to fixed.

Robert: don't hesitate to reopen this tracker if you still reproduce this.