? Success

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
26 Nov 2014

Issue

The copy template feature in our template manager fails when the template has a name with spaces or special characters defined in the XML.
The reason is that the method uses the name from the database, which is a sanitised version of the XML name. The real name is saved in the manifest_cache.

Solution

Get and use the name from the manifest_cache instead for the search/replace function.

Testing

Try to copy a template with a space or special character in the name.
You can use my template {LESS} Allrounder (http://www.bakual.net/download/less-allrounder/less-allrounder-2-0-1/tpl_lessallrounder-zip-5.raw) to do that.
Without patch it will tell you that it worked, but when you're going to check, it didn't copy the template (instead it "updated" the existing one).
With patch it will still tell you that it worked, but now when you're going to check there now is a second template with the new name.

Make also sure that other templates like Protostar still work to copy.

avatar Bakual Bakual - open - 26 Nov 2014
avatar jissues-bot jissues-bot - change - 26 Nov 2014
Labels Added: ?
avatar brianteeman
brianteeman - comment - 26 Nov 2014

@test Issue confirmed
Patch resolves issue

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5219.

avatar brianteeman brianteeman - test_item - 26 Nov 2014 - Not tested
avatar brianteeman brianteeman - test_item - 26 Nov 2014 - Tested successfully
avatar infograf768
infograf768 - comment - 27 Nov 2014

test OK. Merging. Thanks.

avatar infograf768 infograf768 - change - 27 Nov 2014
Milestone Added:
avatar infograf768 infograf768 - reference | 3fe5a4b - 27 Nov 14
avatar infograf768 infograf768 - merge - 27 Nov 2014
avatar infograf768 infograf768 - close - 27 Nov 2014
avatar infograf768 infograf768 - close - 27 Nov 2014
avatar infograf768 infograf768 - change - 27 Nov 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-11-27 08:21:33
avatar Bakual Bakual - head_ref_deleted - 27 Nov 2014

Add a Comment

Login with GitHub to post a comment