Bug 139647

Summary: Improve the canvas "refresh" in Template Manager when categories are renamed or deleted
Product: LibreOffice Reporter: sdc.blanco
Component: LibreOfficeAssignee: VertD <devoptmsoi>
Status: RESOLVED FIXED    
Severity: normal    
Priority: medium    
Version: 5.2 all versions   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=132042
https://bugs.documentfoundation.org/show_bug.cgi?id=138883
https://bugs.documentfoundation.org/show_bug.cgi?id=146375
https://bugs.documentfoundation.org/show_bug.cgi?id=139710
https://bugs.documentfoundation.org/show_bug.cgi?id=146937
Whiteboard: target:7.3.0
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 101435    

Description sdc.blanco 2021-01-15 14:23:10 UTC
0. Open Template Manager (Ctrl+Shift+N) or File > Templates > Manage Templates.

1. Use "Tools" (gear icon) to create a new category (e.g., "New Category") and add one user-defined template in it. 

2.  Rename template in "New Category" to "alpha" ( after which it should appear as  "alpha")

3.  Change Category to "All Categories", and then change back to "New Category" 

Actual Result:  shows previous template name
Expected Result:  shows "alpha"

4.  Tools (gear) > Refresh (in Template Manager, with category set to "New Category")  

Actual Result: still shows previous name
Expected Result:  
  (a) that it was not necessary to use "Refresh"
  (b) but if it is necessary, then "Refresh" should show the changed template name

5.  Change to "All Categories" and back to "New Category"
    
Actual Result: shows "alpha"
Expected Result:  shows "alpha"

In sum:  it appears that a "refresh" is not happening in the right place.

Is the "refresh" menu item in the Tools (gear) dropdown really needed? 
(i.e., maybe offered as a workaround, instead of getting the required refresh to happen automatically)?
Comment 1 sdc.blanco 2021-01-15 14:26:29 UTC
See bug 132042 for "refresh" problem when deleting categories
Comment 3 Commit Notification 2021-08-06 13:15:43 UTC
Vert D committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/8d8450f0c14db26fb8eb44677c2887e619200904

tdf#139647 refresh renamed items

It will be available in 7.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 sdc.blanco 2022-01-13 12:01:25 UTC
(In reply to sdc.blanco from comment #0)
> Is the "refresh" menu item in the Manage dropdown really needed? 
There is no information in the online help about "refresh".
https://help.libreoffice.org/7.4/en-US/text/shared/guide/template_manager.html

Maybe it can be dropped from the menu?  Or if its function can be explained, then I can add this information to the help.

Meanwhile -- category renaming and deleting seems to work as expected (in terms of how it appears in the template manager) -- except for when the category is not in the default path (bug 139710).
Comment 5 Heiko Tietze 2022-01-25 10:21:48 UTC
(In reply to sdc.blanco from comment #4)
> Maybe it can be dropped from the menu?

Follow-up bug 146937