Bug 139710 - Improve action of "Rename Category" dialog in Template Manager when using more than one user path
Summary: Improve action of "Rename Category" dialog in Template Manager when using mor...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.2.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Template-Manager
  Show dependency treegraph
 
Reported: 2021-01-17 17:40 UTC by sdc.blanco
Modified: 2022-12-19 13:40 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sdc.blanco 2021-01-17 17:40:14 UTC
1.  Open Template Manager (Ctrl+Shift+N), make a new category (use "gear icon", select "New category", and choose a name,e.g., NewCat) 

2. Add a new path for templates  (i.e., Use Tools - Options (Alt-F12) – LibreOffice – Paths – Templates), Edit Template, add a new path and make this new path as default.

3.  Move/import a template to “NewCat”

4.  Use Template Manager to rename category “NewCat”
    Actual result:    “Warning: Cannot create (new category name)

    Expected result:   Should be able to “rename” the category.
Comment 1 Buovjaga 2021-12-03 14:43:52 UTC
(In reply to sdc.blanco from comment #0)
> 2. Add a new path for templates  (i.e., Use Tools - Options (Alt-F12) –
> LibreOffice – Paths – Templates), Edit Template, add a new path and make
> this new path as default.

Sorry, but I don't understand this step. I don't know what I should do with "Edit Template, add a new path and make this new path as default". Which template am I editing? How do I add a path etc.?
Comment 2 sdc.blanco 2021-12-04 13:26:54 UTC
(In reply to Buovjaga from comment #1)
> > 2. Add a new path for templates  (i.e., Use Tools - Options (Alt-F12) –
> > LibreOffice – Paths – Templates), Edit Template, add a new path and make
> > this new path as default.
> 
> Sorry, but I don't understand this step. 

1.  Use Tools - Options (Alt-F12) –  LibreOffice – Paths – Templates
2.  With Templates selected, click "Edit" button
3.  Click "Add" button in "Edit Paths: Templates" pop-up box
4.  Select the folder (new or existing) that you want to add to the Templates path.
5.  This folder should now be added to the list, and it should be possible to select the radio button for this folder -- which will made this new (added) path as default.
6.  "OK" (to close Edit Paths dialog)
7.  "OK" (to close Options dialog)


Repro at least once with:

Version: 7.2.3.1 (x64) / LibreOffice Community
Build ID: 1d5dee817bde88d78dbcc0d00f88492568e131d5
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: da-DK (en_DK); UI: en-US
Calc: threaded


(meanwhile, new problems seem to appear, since last time that I tested (e.g., have to close and reopen template manager to have a new category be applied).
So -- you will be able to rename -- but if you close and reopen the template manager, then you will see that the "changes" are gone.  (this is new.  But I was also able to reproduce the OP, once, but could not find a reliable procedure.)

The general issue here is that it is possible for the user to add multiple paths for templates, and to make one of those paths the default.  And it is possible to have the same category name in all these paths.  The "problems" seem to be connected to how the template manager decides to change a category name.  It seems that in version 7.2.3, it does not use the default path that was set (like it used to -- which is probably why the OP reported that the name could not be changed).
Comment 3 Buovjaga 2021-12-04 16:11:19 UTC
Sorry, I had some kind of a brainfart and didn't understand all of step 2 was being done in options dialog :)

However, I can't reproduce the problem with

Arch Linux 64-bit
Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: f586839956d6937920aa377fe95854c1a0518d96
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 3 December 2021
Comment 4 sdc.blanco 2021-12-22 12:50:56 UTC
Repro (with slight modification):

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: e63fe68fb1d0915b64fdf63f7fa6eed866fa3a0d
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-US (en_DK); UI: en-US
Calc: CL

New instructions (for latest version of template manager).

1. Open Template Manager (Ctrl+Shift+N), make a new category (use "Manage" in top right corner, select "New category", and choose a name, e.g., NewCat).

2.  Add a new path for templates  (i.e., Use Tools - Options (Alt-F12) – LibreOffice – Paths – Templates), Edit Template, add a new path and make this new path as default.

3. Use template manager to rename the new category (i.e., select category, then Manage, Rename category, enter new name).

Actual Result 1:  Cannot create category: (newcategory name)

Actual Result 2:  Sometimes the category name does change (not sure why/how I was able to do that), with no error message.  But if you close the Template Manager, and reopen it, then the rename is reverted back to the original (with no error message).
Comment 5 sdc.blanco 2022-01-13 11:44:02 UTC
Reproduced with version that repairs category renaming problem (bug 146375).
The OP STR is still valid/accurate for this version.

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: bb29b12a9e367d181a5d9d962d466df41e093e0c
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: da-DK (da_DK); UI: en-US
Calc: CL
Comment 6 sdc.blanco 2022-12-19 13:40:14 UTC
repro (with STR in comment 3):

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 98f0dd5e15733ac7f1d929d06ab230b5f04121d5
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: da-DK (da_DK); UI: en-US
Calc: CL threaded