JoomGalleryfriends / JG4-dev

Development repository for JoomGallery v4.x
GNU General Public License v3.0
10 stars 7 forks source link

[FileManager service] Wrong path after moving category #44

Closed MrMusic closed 1 year ago

MrMusic commented 2 years ago

Steps to reproduce the issue

Create two main categories: Cat-A and Cat-B Create new images in Cat-B Move Cat-B as subcategory under Cat-A Check file structure ->Here is all ok Create new image in Cat-B Check file structure

Expected result

The new images should be stored in the folder xxx\cat-a\cat-b The path entry in the database table should be \cat-a\cat-b

Actual result

The images are stored in (an automatically created) folder \cat-b. This directory is not created as a subcategory under Cat-A but as a new main category. The path entry in the database category table is incorrect: \cat-b instead \cat-a\cat-b

wrong-path-structure

System information

Joomla 4.2.3 JoomGallery 4 actual main branch PHP 8.1

MrMusic commented 1 year ago

Additional hint: when changing the category title and alias, the folder name (path in #__categories) would also have to be changed in the folder structure, this does not work.

Elfangor93 commented 1 year ago

Fixed in PR #86 ...