Bug 152156 - Cannot select duration data type in custom property in a stable manner
Summary: Cannot select duration data type in custom property in a stable manner
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.2.3 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: File-Properties
  Show dependency treegraph
 
Reported: 2022-11-21 14:27 UTC by Hendrik 'BasicBaer' Voelker
Modified: 2022-11-25 15:32 UTC (History)
2 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 Hendrik 'BasicBaer' Voelker 2022-11-21 14:27:26 UTC
Description:
After creating a custom property in /file/properties/custom property of type duration, it seems that the type is not locked in properly. After closing and reopening the customer property dialog, the data type has changed to text or the one of the property listed before this one.

Steps to Reproduce:
1. Open File/Properties/Custom Properties
2. Create new property of name "test", type "duration" and set a duration of 4 days 
3. Close the dialog by clicking OK
4. Open File/Properties/Customer Properties again

Now the property type has changed to text, but I also observed that it becomes the type of the property listed before this one.

Actual Results:
Empty string

Expected Results:
Duration of 4 days


Reproducible: Always


User Profile Reset: No

Additional Info:
Using https://snapcraft.io/libreoffice
snap-id:      CpUkI0qPIIBVRsjy49adNq4D6Ra72y4v
tracking:     latest/stable
latest/stable:    7.4.2.3 2022-11-04 (262) 962MB -

Version: 7.4.2.3 / LibreOffice Community
Build ID: 22949782292d40bc0751a2b0b2cf40927460a4f8
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: CL
Comment 1 Stéphane Guillou (stragu) 2022-11-25 15:32:54 UTC
Thanks Hendrik!

Reproduced in:

Version: 7.4.3.2 / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: de-DE (en_AU.UTF-8); UI: en-US
Calc: threaded

and on Windows too:

Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: threaded

However, it seems fixed in master:

Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 24d7431876e87eba700a9f141dc8e030143a92ad
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

It was most likely fixed by this commit by Nick Wingate:

https://git.libreoffice.org/core/+/346cda683763aa352cf67a035340e48133790f7f

Nick, will the fix be available in 7.4 as well?