Bug 69313 - Fixed date field in template gets doubled while first document saving
Summary: Fixed date field in template gets doubled while first document saving
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-13 10:49 UTC by fidel+LibreOffice
Modified: 2014-04-24 06:43 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
LibreOffice Writer Template (15.39 KB, application/vnd.oasis.opendocument.text-template)
2013-09-16 07:04 UTC, fidel+LibreOffice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fidel+LibreOffice 2013-09-13 10:49:28 UTC
Hello,

I've created a template (.ott) which includes several fields.
One of those fields has the type Date/fixed and should represent the create date of the document.

If i create a new writer-document based on this template everything looks fine until i do the first save as .odt.

In the moment the document gets saved i can see how my single date fields seems to clone itself .... at the end i do see 2 date-fields on the place where my former single date-field was.

Saving the document again doesnt results in such a misbehaviour - so it seems to just happen on the first save - after creation based on the template.


I am using: several versions between 4.0.4 and 4.1 on windows, linux and mac os x.

Is that a known issue?
anything i can provide to reproduce this issue?



Best regards
fidel
Comment 1 Cor Nouws 2013-09-13 11:20:51 UTC
(In reply to comment #0)

> Is that a known issue?
> anything i can provide to reproduce this issue?


Yes, pls your template.
thanks for your report!
Cor
Comment 2 fidel+LibreOffice 2013-09-16 07:04:29 UTC
Created attachment 85893 [details]
LibreOffice Writer Template

- Open the template in LO 4.x
- Take a look at the date-field
- Save it as .odt
- Realize that you NOW (after saving) have 2 date-fields


Best regards
fidel
Comment 3 fidel+LibreOffice 2013-09-16 07:04:59 UTC
Hi - see the attached template.


Best regards
fidel
Comment 4 fidel+LibreOffice 2013-09-24 14:15:07 UTC
@Cor Nouws
Is the issue re-produceable for you using my attached template?
Comment 5 fidel+LibreOffice 2013-12-03 14:45:18 UTC
Hi,

anyone checked this bugreport?

I still can reproduce that on my linux & windows hosts.
Can i provide anything else to help fixing that issue?



Thanks in advance
fidel
Comment 6 fidel+LibreOffice 2014-04-23 13:59:33 UTC
ping?
Comment 7 Cor Nouws 2014-04-23 15:36:05 UTC
Hi fidel,

Sorry for not responding earlier! (just tooo busy)
Lucky that I'm triggered by your 'ping (without my name...)

I created now document and saved and reopend.
In 4.2.3.3 and 4.0.6.2 on Linux.
In both cases, I see only one date field.
So I cannot reproduce your problem, so cannot shine any light on this. Sorry.
I'll post to QA to see if some others can test.

Ciao,
Cor
Comment 8 Marina Latini (SUSE) 2014-04-23 15:55:45 UTC
Hi all!
Just tested on LibO installed from downloaded .deb packages with Italian language.
Version: 4.2.4.1 x86_64
Build ID: d4c441391e20647b3d2e8dde4d20aa868e77e515
OS:  Ubuntu 13.10 x86_64 saucy

I can't reproduce the problem. After save, close and reopen I can see only one date field.

Marina
Comment 9 V Stuart Foote 2014-04-23 16:17:57 UTC
@Fidel, *,

Verify the behavior, but not a bug.

For the posted example_template.ott you simply have the Datum: field value assigned to two date values: Date(fixed) and DocInformation:Modified.

Use <ctrl>+F9 to toggle in the template or when saved as a document.

Remove one or the other, and you'll have just the one date in the field. Either with Date(fixed)--the fixed date the derived document is created. Or the DocInformation:Modified value--"Inserts the name of the author, and the date, or the time of the last save."

Choose either option when editing the template from Insert -> Fields -> Other (or <ctrl>+F2 accelerator) on either the Document or the DocInformation tabs.
Comment 10 fidel+LibreOffice 2014-04-24 06:43:13 UTC
hi,


thanks for all the input.
This explains my issue perfect.


Sorry for the trouble.


Best regards
fidel