DocumentServer icon indicating copy to clipboard operation
DocumentServer copied to clipboard

Cross-referencing a heading by heading number always inserts 0

Open NanoSector opened this issue 3 years ago • 2 comments

Do you want to request a feature or report a bug? Bug.

What is the current behavior? The document editor always inserts 0 when you insert a cross-reference to a heading with any of the heading number options selected.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  1. Create a new empty document
  2. Create a heading with style Heading 1 and name it 1. Testing
  3. Below this header, insert a new cross-reference with the following settings, where "Insert reference to" is set to any of the Heading number options: Screenshot_20220223_090716

What is the expected behavior? The heading number 1 gets inserted.

Did this work in previous versions of DocumentServer? Unsure. This bug is present in versions 7.0.0 and 7.0.1.

DocumentServer version: 7.0.1

Operating System: Client: Ubuntu 20.04.4 Server: Fedora 35, but OnlyOffice is running in podman 3.4.4 with the onlyoffice/documentserver container.

Browser version: Firefox 97.0 and Chromium 98

NanoSector avatar Feb 23 '22 08:02 NanoSector

Hello, @NanoSector. Sorry for the delay in responding. I was unable to reproduce your problem. It could be that you haven't applied the numbering style to the heading. If the problem is still happening to you now, please record a video with the reproduction of the problem. This will help us a lot.

matveevms avatar May 25 '22 14:05 matveevms

I can still reproduce this with DocumentServer 7.1.0 using the exact steps I described in the issue. Unfortunately I can't record my desktop on this machine, but I have attached a screenshot showing the issue in a blank document.

Screenshot_20220530_112152

Could this be a locale issue?

NanoSector avatar May 30 '22 09:05 NanoSector

Hi @NanoSector! I've been browsing through existing issues and found yours. Looks like I reported something similar or at least related, what do you think? https://github.com/ONLYOFFICE/DesktopEditors/issues/1107

HectorB-2020 avatar Dec 04 '22 17:12 HectorB-2020

Hi @HectorB-2020, I don't think these issues are related; as you can see in my screenshots I do get the heading names in those lists.

I haven't used OnlyOffice in a while though so it might be possible this bug has escalated to there.

NanoSector avatar Dec 04 '22 17:12 NanoSector

Hello, @NanoSector. Sorry for the delay in responding. I can confirm - this is bug, issue 61442 in our private issue tracker. Thank you for report.

maruacat avatar Mar 02 '23 10:03 maruacat