Bug 119157 - After Modifying A Writer Template, Document Doesn't Ask To Update Styles When Opened
Summary: After Modifying A Writer Template, Document Doesn't Ask To Update Styles When...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.4.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-08 13:36 UTC by librelibre
Modified: 2018-09-04 12:56 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Template Screenshot (131.44 KB, image/png)
2018-09-02 23:15 UTC, librelibre
Details
Document Screenshot (192.28 KB, image/png)
2018-09-02 23:15 UTC, librelibre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description librelibre 2018-08-08 13:36:15 UTC
Description:
As per the "WG60-Writer Guide" (Chapter 10 - Working with Templates | Page 219):

---------------------------------------------
Updating a document from a changed template:
 
If you make any changes to a template and its styles, the next time you open a document that was created from the template before the changes, a confirmation message is displayed. 

To update the document: 

1) Select "Update Styles" to apply the changed styles in the template to the document. 

2) Select "Keep Old Styles" if you do not want to apply the changed styles in the template to the document (but see the Caution notice below)…

---------------------------------------------

However this isn't working.  If I update a template and open a document that was created with that template, I don't see any message to choose whether to either 'Update Styles' or 'Keep Old Styles'.  It was working in LibreOffice 5.4, but somewhere in the 6.0 cycle is has stopped working.  


Steps to Reproduce:
To Reproduce:

1) Open a blank LibreOffice Writer document

2) Go To File > Templates > Save as Template, and save it as 'Test'.  Close the document.

3) From the LibreOffice StartPage, go to Templates and open the 'Test' template we created

4) Type some text, then press CTRL + 0 to assign a 'Text Body' Paragraph Style to it.  Save the document as a *.odt and close LibreOffice.

5) Open LibreOffice.  From the LibreOffice StartPage, go to Templates, right-click the 'Test' template and go to Edit.

6) In the Writer Sidebar, find the 'Text Body' Paragraph Style, right-click it and select Modify.  Change the font to say 24pt, click OK, save the template, close the template.  Close LibreOffice.

7) Open the document we saved in Step 4.  There should be a message saying the template has been updated and asking whether we want to 'Update Styles' or 'Keep Old Styles', however no message appears.


Actual Results:
No message appears when opening the document to say that the template has been updated and asking whether to 'Update Styles' or 'Keep Old Styles'

Expected Results:
When opening the document, there should be a message saying the template has been updated and asking whether we want to 'Update Styles' or 'Keep Old Styles'


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 6.0.6.2 (x64)
Build ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77
CPU threads: 4; OS: Windows 10.0; UI render: GL; 
Locale: en-GB (en_GB); Calc: CL
Comment 1 Buovjaga 2018-09-02 17:05:42 UTC
It works fine for me here. It is a long shot, but try disabling OpenGL: Tools - Options - LibreOffice - View - Use OpenGL for all rendering

You could also try 6.1.

Version: 6.1.0.3 (x64)
Build ID: efb621ed25068d70781dc026f7e9c5187a4decd1
CPU threads: 4; OS: Windows 10.0; UI render: default; 
Locale: fi-FI (fi_FI); Calc: group threaded
Comment 2 librelibre 2018-09-02 23:15:18 UTC
Created attachment 144618 [details]
Template Screenshot
Comment 3 librelibre 2018-09-02 23:15:56 UTC
Created attachment 144619 [details]
Document Screenshot
Comment 4 librelibre 2018-09-02 23:17:23 UTC
I tried turning off 'OpenGL for all rendering', but unfortunately it didn't make any difference.

I also just tried it with 6.1.0.3 and the problem is still there on that version too.

Version: 6.1.0.3 (x64)
Build ID: efb621ed25068d70781dc026f7e9c5187a4decd1
CPU threads: 4; OS: Windows 10.0; UI render: GL; 
Locale: en-GB (en_GB); Calc: CL

I have attached screenshots of what I'm seeing.  You said it's working OK for you, can you post a screenshot of the message you're seeing in 6.1?
Comment 5 Buovjaga 2018-09-03 07:20:19 UTC
(In reply to librelibre from comment #4)
> I have attached screenshots of what I'm seeing.  You said it's working OK
> for you, can you post a screenshot of the message you're seeing in 6.1?

I don't think me posting a screenshot would provide any additional value, so no.
Comment 6 Dieter 2018-09-03 08:20:39 UTC
Perhaps it's a possibility to open the meta.xml file of your document to prove, if the template path and the settings are correct.
Comment 7 librelibre 2018-09-03 12:58:58 UTC
(In reply to Buovjaga from comment #5)
> I don't think me posting a screenshot would provide any additional value, so
> no.

Sure it does.  It stopped working somewhere in the 6.0 cycle and I'm still unable to get it to work in the latest version—the same version you're using.

You're saying that it's working fine for you in that version.  So I don't think the message that you say you're seeing is the same one that I am talking about.  The reason for asking you to post a screenshot was to confirm whether this is the case on not, as I suspect it isn't.

Anyway, I've reported the problem to you, so the ball is now in your court whether you want to leave it broken or not.
Comment 8 Buovjaga 2018-09-03 13:03:21 UTC
(In reply to librelibre from comment #7)
> (In reply to Buovjaga from comment #5)
> > I don't think me posting a screenshot would provide any additional value, so
> > no.
> 
> Sure it does.  It stopped working somewhere in the 6.0 cycle and I'm still
> unable to get it to work in the latest version—the same version you're using.
> 
> You're saying that it's working fine for you in that version.  So I don't
> think the message that you say you're seeing is the same one that I am
> talking about.  The reason for asking you to post a screenshot was to
> confirm whether this is the case on not, as I suspect it isn't.
> 
> Anyway, I've reported the problem to you, so the ball is now in your court
> whether you want to leave it broken or not.

I'm saying I get the message. You just have to trust me. I have limited time and would not want to repeat the process needlessly. Rather look into what Dieter asked in his comment 6.
Comment 9 librelibre 2018-09-04 12:21:45 UTC
(In reply to Buovjaga from comment #8)
> I'm saying I get the message. You just have to trust me. I have limited time
> and would not want to repeat the process needlessly.


OK.  I have investigated further and have identified the root cause of the issue as being due to the following setting:

Tools > Options > Security > Options > Remove personal information on saving

If this setting is on (so that personal information is removed from documents), when you save a template it prevents a message being displayed asking whether to update styles or not.
Comment 10 Dieter 2018-09-04 12:56:54 UTC
(In reply to librelibre from comment #9)
> If this setting is on (so that personal information is removed from
> documents), when you save a template it prevents a message being displayed
> asking whether to update styles or not.

So I close this as WORKSFORME