When the attached document containing a changed field code is opened in Writer the change is not shown in the Mange Changes window as it is in Word. This causes the changed hyperlink fields to contain garbage and effectively they are unusable.
Steps to Reproduce:
1. In Word create some hyperlinks: web address and e-mail address too
2. Turn on change tracking
3. Edit the existing hyperlinks and change their type: the e-mail address to web page and web page to e-mail address.
4. Word will indicate the changes with “Field code has changed” entries.
5. Open the document in Writer and edit the links. The URL will contain the previous target, the text HYPERLINK and the new target, while the text will contain the previous and the new link texts too.
6. Open the Manage Changes window. There are fewer entries (4 vs 10) than in the original file.
Accepting or rejecting the changes causes the URL to not change (stays broken), only the text becomes the new one (or the old one in case of rejecting).
The hyperlinks are broken.
The hyperlinks are usable with tracked changes, also after accepting or rejecting those changes.
User Profile Reset: No
Build ID: ade1df0948563b532a5d293c31d46a4f042559ee
CPU threads: 4; OS: Windows 6.3; UI render: GL; VCL: win;
Locale: hu-HU (hu_HU); UI-Language: en-US
Already present in:
Build ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d53735
Created attachment 150454 [details]
The Manage changes window
Created attachment 150455 [details]
The Hyperlink window editing the changed links
Created attachment 150456 [details]
Example file with two modified hyperlinks with change tracking
Build ID: e44c31d68b026ad9cd954dc572cb1460958a6327
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3;
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e
Wow! That's a great explanation. I have tried doing it the same and it worked. Thanks guys.
Still in LO 22.214.171.124.alpha0+ (5a1f41a0d3aab15c113651f2edc9d4137ae99063) / Windows.
Created attachment 186034 [details]
other test example
Created attachment 186245 [details]
first hypertext only with deleted command
Czeber László Ádám committed a patch related to this issue.
It has been pushed to "master":
tdf#124472 DOCX import: fix broken field command by skipping delInstrText
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:
Affected users are encouraged to test the fix and report feedback.
Version: 126.96.36.199.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1b463f697405e64a03378fb38a32172c4d3c25e6
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: CL threaded