Bug 58533

Summary: EDITING: Insert Field conditional text does not work correctly.
Product: LibreOffice Reporter: John Smith <clicksafe>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED NOTABUG    
Severity: normal CC: miguelangelrv
Priority: medium    
Version: 3.6.4.3 release   
Hardware: Other   
OS: Windows (All)   
Whiteboard: BSA
Crash report or crash signature: Regression By:
Attachments: Screenshot how to set up.

Description John Smith 2012-12-19 19:42:04 UTC
Problem description: If conditional text contains more than one full-stop, including decimal places, then no field is created.

Steps to reproduce:
1. Select Insert>Fields>Other and choose the Functions tab. Select the Conditional text Type. Enter a condition into the Condition text box, for example, TRUE.

2. In the THEN text box enter any text containing more than one full-stop (period) including decimal points. For example 'Between 2.3 and 4.5 seconds.' (3 full-stops)
3. Press the Insert button.

Current behavior: No field is inserted.

Expected behavior: The text should be entered. The Help files state that; 'There is almost no limit to the length of the text that you can enter. You can paste a paragraph into this box'. This information given in the page returned from a search on 'conditional text, setting up'.

The same behaviour occurs if you replace TRUE with FALSE in step 1, and enter similar text into the ELSE text box at step 2. For example 'No. Stay here.' (Two full-stops)            
Operating System: Windows XP
Version: 3.6.4.3 release
Comment 1 m_a_riosv 2012-12-20 01:41:50 UTC
Created attachment 71833 [details]
Screenshot how to set up.

In LibreOffice help.

Condition
For fields linked to a condition, enter the criteria here.
Then, Else
Enter the text to display when the condition is met in the Then box, and the text to display when the condition is not met in the Else box.
You can also insert database fields in the Then and Else boxes using the format "databasename.tablename.fieldname".

If the table or the field name does not exist in a database, nothing is inserted.

If you include the quotes in "databasename.tablename.fieldname", the expression is inserted as text.
^^^^^^^^^^^^^^^^^^^^

As the previous help paragraph states, you need to include in quotes the text with several periods, I have done a try and it works. Attached screenshot.

I guess that periods have special meaning to allow database fields.

I think this is not a bug.

If you are not agree please reopen it.