Bug 140175 - Input Field Variable does not change
Summary: Input Field Variable does not change
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.3.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Fields-Variable
  Show dependency treegraph
 
Reported: 2021-02-05 07:11 UTC by ibelin123
Modified: 2023-12-18 06:58 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
sample (45.43 KB, application/vnd.oasis.opendocument.text)
2021-02-05 07:13 UTC, ibelin123
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ibelin123 2021-02-05 07:11:53 UTC
Description:
I created an Input Field Variable "P."

Also there are conditional Variables where
P=="A" then "Apple"
P=="B" then "Banana"
P=="C" then "Citrus"

When you open the attached sample it is already pre-selected to "B" and the conditional variable is already "Banana."

The problem is when you change the input variable "B" into "C" it will not work but the conditional variable will change into "Citrus." When you save the document:

a. in 6.4,  it will change to "C" and the conditional variable will remain as “citrus.” 
b. in 7.1, it will remain as “B” and the conditional variable will return to “banana.”



Steps to Reproduce:
1.Click on Input Field already set to "B"
2.Enter a choice "A" or "C"


Actual Results:
1. Input Field will remain "B"

Expected Results:
1. Input Field should change into "A" or "C"


Reproducible: Always


User Profile Reset: No



Additional Info:
I see this problem in 6.4, 7.0 and 7.1, but is not a problem in 6.3 and below.

Additional Information:

In 6.4, the input variable will not show “input field” when the View Field Names is ticked.

In 7.1, when the cursor is placed in the beginning of the input variable and you will double click it, it will open the dialog for an input list which was already deleted.
Comment 1 ibelin123 2021-02-05 07:13:16 UTC
Created attachment 169487 [details]
sample
Comment 2 m_a_riosv 2021-02-05 07:20:24 UTC
Confirmed
Version: 7.1.0.3 (x64) / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 4; OS: Windows 10.0 Build 21296; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL
Comment 3 m_a_riosv 2021-02-05 07:32:43 UTC
Confirmed also:
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 6ca7be8f10deb75399377f25277b943af40f72f1
CPU threads: 4; OS: Windows 10.0 Build 21296; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL

Versión: 6.3.5.2 (x64)
Id. de compilación: dd0751754f11728f69b42ee2af66670068624673
Subprocs. CPU: 4; SO: Windows 10.0; Repres. IU: GL; VCL: win; 
Configuración regional: es-ES (es_ES); Idioma de IU: es-ES Calc: threaded

With all, [F9] or Menu/Tools/Update/Update fields, update correctly the values.
Comment 4 ibelin123 2021-02-05 07:53:20 UTC
[F9] for me in 7.1.03 reverts back to the old value. Input Variable is still "B" and the conditional value will return to "Banana."
Comment 5 ibelin123 2021-02-06 08:32:30 UTC
> Additional Info:
> I see this problem in 6.4, 7.0 and 7.1, but is not a problem in 6.3 and
> below.

Update: Problem is also found in 6.3, but not in 6.2.
Comment 6 QA Administrators 2023-02-07 03:24:56 UTC Comment hidden (obsolete)
Comment 7 sdc.blanco 2023-12-16 11:06:54 UTC
adding possibleRegression because of comment 5
Comment 8 raal 2023-12-17 10:51:37 UTC
This seems to have begun at the below commit in bibisect repository/OS XXXX.
Adding Cc: to Samuel Mehrbrodt ; Could you possibly take a look at this one?
Thanks
 935de3f70961ba8ef6c5282f6f0e4808a49faa78 is the first bad commit
commit 935de3f70961ba8ef6c5282f6f0e4808a49faa78
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Mon Apr 8 17:15:15 2019 +0200

    source 742baabbe4d077e1ba913a7989300908f4637ac7

69414: tdf#123968 sw: use inline editing for input fields for variables | https://gerrit.libreoffice.org/c/core/+/69414

Also after this commit I have to double-click field to edit it. Before single click was sufficient.
Comment 9 Samuel Mehrbrodt (allotropia) 2023-12-18 06:58:42 UTC
(In reply to raal from comment #8)
> This seems to have begun at the below commit in bibisect repository/OS XXXX.
> Adding Cc: to Samuel Mehrbrodt ; Could you possibly take a look at this one?
> Thanks
>  935de3f70961ba8ef6c5282f6f0e4808a49faa78 is the first bad commit
> commit 935de3f70961ba8ef6c5282f6f0e4808a49faa78
> Author: Jenkins Build User <tdf@pollux.tdf>
> Date:   Mon Apr 8 17:15:15 2019 +0200
> 
>     source 742baabbe4d077e1ba913a7989300908f4637ac7
> 
> 69414: tdf#123968 sw: use inline editing for input fields for variables |
> https://gerrit.libreoffice.org/c/core/+/69414
> 
> Also after this commit I have to double-click field to edit it. Before
> single click was sufficient.

That commit was (mostly) done my Michael Stahl.