? ? Pending

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
27 Apr 2020

Follow up on #28813

Summary of Changes

Just adding a check if the file exists before trying to copy it.

Testing Instructions

Copy a template

Expected result

works

Actual result

works

Documentation Changes Required

None

avatar Bakual Bakual - open - 27 Apr 2020
avatar Bakual Bakual - change - 27 Apr 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Apr 2020
Category Administration com_templates
avatar infograf768
infograf768 - comment - 27 Apr 2020

I have tested this item successfully on 80450cb

On review


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

avatar infograf768 infograf768 - test_item - 27 Apr 2020 - Tested successfully
avatar richard67
richard67 - comment - 27 Apr 2020

You could move the $dst = Path::clean($toPath . '/' . $folder . '/' . $languageFile); inside the if (File::exists($src)) ;-)

avatar Bakual
Bakual - comment - 27 Apr 2020

I could, but I prefer it to have like it is so src and dst are right after eachother. Imho it's easier to see what happens.

avatar richard67
richard67 - comment - 27 Apr 2020

I have tested this item successfully on 80450cb

On review.


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

avatar richard67 richard67 - test_item - 27 Apr 2020 - Tested successfully
avatar richard67 richard67 - change - 27 Apr 2020
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 27 Apr 2020

RTC


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

avatar richard67 richard67 - change - 27 Apr 2020
Labels Added: ? ?
avatar wilsonge wilsonge - close - 2 May 2020
avatar wilsonge wilsonge - merge - 2 May 2020
avatar wilsonge wilsonge - change - 2 May 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-05-02 10:39:22
Closed_By wilsonge
Labels
avatar wilsonge
wilsonge - comment - 2 May 2020

Thanks!

Add a Comment

Login with GitHub to post a comment