This is a regression introduced with bug 139141. 1. Open Writer 2. Insert > Field > More fields 3. Insert Date, and further down insert Date (fixed), close dialog 4. Write-click on each one > Edit Fields... => Edit > Fields inverts Date / Date (fixed). Introduced by https://git.libreoffice.org/core/+/b2c81dad3a0b72d305f1c6967ee4a8069ae11b45%5E%21 Revert for 7.5?
As mentioned in bug 139141, repro in: Version: 7.5.0.1 (X86_64) / LibreOffice Community Build ID: 77cd3d7ad4445740a0c6cf977992dafd8ebad8df CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded The fields are inserted correctly, and the name is displayed correctly in the navigator. Only the highlighting in the Edit Fields dialog does not correspond to what is being edited. Maybe the issue has to do with the condition: (nSubType == DATE_VAR) ? 0 : FIXEDFLD In both: - https://opengrok.libreoffice.org/xref/core/sw/source/ui/fldui/fldpage.cxx?r=85c2ed8d#179 - https://opengrok.libreoffice.org/xref/core/sw/source/uibase/fldui/fldmgr.cxx?r=16075474#964
(In reply to Stéphane Guillou (stragu) from comment #1) > (nSubType == DATE_VAR) ? 0 : FIXEDFLD The complete function is Date|Time mod Fixed. Neither modifying SwDateTimeSubType in sw/inc/fldbas.hxx nor exchanging SwDateSubFormat in sw/inc/flddat.hxx solves the problem resp. introduces other. And since the FIXEDFLD flag is used widely across the application I vote for reverting the patch.
Thanks Heiko, happy for a revert.
Reverted in master and 7.5
Verified fix in: Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: ec2f1d73936c9d8cee83c0887170e9ecb8f044ba CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded Thanks Heiko!