https://bugs.documentfoundation.org/show_bug.cgi?id=169736
Bug ID: 169736
Summary: Renaming doc property does not completely rename the
property
Product: LibreOffice
Version: 25.8.3.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Create a document.
Add a custom doc property: file->Properties->custom properties->add property
Call it "custom1", and set value "custom1 value", click OK.
See the document.
In the navigation pane, usually on the left by default, you'll see several
hierarchies: headings, tables, frames, images, bookmarks, sections, etc.
Look for fields.
There are at least 2 kinds of fields in my document, "cross reference" fields
and "field" fields.
In the section of "field" fields, locate your new field. It should be called
"custom1", and if you double click it, Writer will take you to the location
where that instance of that field is used in the document. Verify that by
double clicking the field.
Now, go back into doc properties where you created it. The documentation
specifies that to rename the field, all you need to do is change the name of
the field in the document properties.
See here:
https://help.libreoffice.org/latest/en-US/text/shared/01/01100300.html
This is another area about custom fields, but says nothing about renaming them:
https://books.libreoffice.org/en/WG252/WG2517-Fields.html
So...
Go to file->properties->custom properties, and see your property you just
created. Change the name of the property to "changed_property_name". Also,
change its value to "changed_property_name_changed_value".
Click Ok.
Navigate to all of the document's fields:
1) You should expect to find "changed_property_name", and you don't, but you
should
2) You still see "custom1", and you do, but you shouldn't
If you double click the field to take you in the document where it is placed,
you will also see that the original value is there. This kind of makes sense,
because that is the value of the original value with the original name. But
renaming the property should have renamed it in the navigation pane.
In the document where the original name of the property is used, containing the
original value, you can double check it, and then you can select from a list of
property names - but note that the old property name is not in the list, as
expected. You can choose the name of the renamed property, and when you do,
you see that the value of the renamed property takes on the value of the
changed value.
The result is that you only changed the name of the property in the custom
properties list, but you have not really changed the name of the document
property within the document proper.
It is worth mentioning that if you delete a custom property, the name of the
now-deleted property remains in the list of fields. Then you double click it,
you are taken to the place in the document where it is used, but the value is
blank - and therefore, difficult to see. You can double click it if you are
careful, and then you can choose to set that spot to the value of another
field; or you can delete it outright.
--
You are receiving this mail because:
You are the assignee for the bug.