Issue 56904 - WW8: Conditional Text Broken in Ver. 2.0; worked in 1.1.5
Summary: WW8: Conditional Text Broken in Ver. 2.0; worked in 1.1.5
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 2.0
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: needmoreinfo, oooqa
: 63644 (view as issue list)
Depends on:
Blocks:
 
Reported: 2005-10-29 00:08 UTC by patrick_c
Modified: 2017-05-20 11:22 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Document containing conditional text (5.88 KB, application/vnd.oasis.opendocument.text)
2005-10-31 11:56 UTC, michael.ruess
no flags Details
Sample ".odt" doc to demo Cond. Txt Bug (6.10 KB, application/vnd.oasis.opendocument.text)
2005-10-31 18:20 UTC, patrick_c
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description patrick_c 2005-10-29 00:08:27 UTC
This bug occurs when user sets up conditional text in OpenOffice word processer 
and then tries to save the document in MS Word format.  Instead of respecting 
the conditions set up, OpenOffice simply saves the document with ALL text 
showing.  The bug occurs in version 2 but not in version 1.1.5. 

See post by JohnV at:
    http://www.oooforum.org/forum/viewtopic.phtml?t=25419
      (I started that thread -"SmartCat")
     
To duplicate; simply set up a variable for conditional text so that one line 
shows if the variable is set to 1 and another line shows if the variable is set 
to 0.  Now set the variable to either 1 or 0 and save the document to MS Word 
format.  Note that the saved document contains ALL the text regardless of what 
the variable was set to at the time of the save.  

Patrick
Comment 1 Rainer Bielefeld 2005-10-29 08:57:00 UTC
@patrick_c
Pls. specify your Platrofm and OS.

Can you pls. attach a small test document.sxw?
Comment 2 michael.ruess 2005-10-31 11:53:46 UTC
MRU->FLR: export the attached .odt to WW8 format and reopen -> all hidden text
fields have been exported as if the condition was false. This worked correctly
in OO 1.1.4.
Comment 3 michael.ruess 2005-10-31 11:56:08 UTC
Created attachment 31045 [details]
Document containing conditional text
Comment 4 patrick_c 2005-10-31 18:18:41 UTC
To duplicate the bug, the conditional text must be associated with a SECTION.  
My apologies for not mentioning this in the original report.  I'm attaching a 
very simple ".odt" example document ...or you can follow the steps below to 
duplicate the bug:

Start a new text doc

With Cursor on the first line go to the insert menu:
    >insert>Fields>Other>Variables
	make sure “Set Variable” is highlighted in the first box.
     …now for “name” enter “a”, for “value” enter “1” and click the “invisible” 
checkbox
On about the third line enter: “Should not show if a==0”
On about the fifth line enter:  “Should not show if a==1”

Now select the entire third line with the cursor and with the entire line 
selected go to the insert menu:
    >Insert>Section
   …accept all defaults, then click the “Hide” checkbox and in the “with 
condition” box enter “a==0”

Now select the entire fifth line with the cursor and with the entire line 
selected go to the insert menu:
    >Insert>Section
   …accept all defaults, then click the “Hide” checkbox and in the “with 
condition” box enter “a==0”


Now go back to the beginning of the first line and double-click the hidden “a” 
variable, bring up the dialog box to change the value of “a” alternatively to 1 
or 0 and note that the correct line disappears. 
Now Save the doc as MS Word Format and note that both lines are present in the 
saved doc -this is the bug.
Comment 5 patrick_c 2005-10-31 18:20:52 UTC
Created attachment 31058 [details]
Sample ".odt" doc to demo Cond. Txt Bug
Comment 6 patrick_c 2005-10-31 18:26:24 UTC
Just noticed a (fairly obvious) error in the instructions I entered 10mins 
ago.  For the second section, the condition should be Hide if "a==1" (not a==0).
Comment 7 patrick_c 2005-10-31 18:26:42 UTC
Just noticed a (fairly obvious) error in the instructions I entered 10mins 
ago.  For the second section, the condition should be Hide if "a==1" (not a==0).
Comment 8 patrick_c 2005-10-31 19:34:37 UTC
My Platform/OS: Windows XP
Comment 9 Mathias_Bauer 2006-01-20 16:55:47 UTC
We will not finish this until 2.0.2 code freeze -> retargetting to 2.0.3
Comment 10 Mathias_Bauer 2006-03-09 14:59:15 UTC
In OOo1.1 we didn't really export conditional text, we imported only normal text
(by evaluating the visibility at the time of saving). So I agree that something
that was broken now is even more broken ;-) but I don't see it important enough
to fix it for 2.0.3.
Comment 11 michael.ruess 2006-03-27 11:24:44 UTC
*** Issue 63644 has been marked as a duplicate of this issue. ***
Comment 12 lars 2006-04-10 12:12:22 UTC
*** Issue 63644 has been marked as a duplicate of this issue. ***
Comment 13 Mathias_Bauer 2006-07-04 14:19:58 UTC
Due to missing resources retargetted to "OOo Later"
Comment 14 Mathias_Bauer 2006-08-30 14:56:12 UTC
assigned to hbrinkm
Comment 15 ace_dent 2008-05-15 15:02:22 UTC
This Issue requires more information ('needmoreinfo'), but has not been updated
within the last year. Please re-test with one of the latest versions of OOo -
the problem(s) may have already been addressed. Either use the recent stable
version: http://download.openoffice.org/index.html
or consider trying the new OOo 3 BETA (still in testing):
http://download.openoffice.org/3.0beta/
 
Please report back the outcome so this Issue may be closed or progressed as
necessary - otherwise it may be Resolved as Invalid in the future. You may also
wish to search for (and note) any duplicates of this Issue that may have
advanced further :
http://www.openoffice.org/issues/query.cgi
 
Regards,
Andrew
 
Cleaning-up and Closing old Issues as part of:
~ The Grand Bug Squash, pre v3 ~
Comment 16 guesoulkuhor 2010-11-10 16:01:10 UTC
Created attachment 73056
Comment 17 Marcus 2017-05-20 11:22:50 UTC
Reset assigne to the default "issues@openoffice.apache.org".