Fix: Problem with the blockreassurance module in case of a site in a subfolder
| Questions | Answers |
|---|---|
| Description? | If images are uploaded while the site is in a subfolder and then the folder name is changed, or the site is moved to the root directory, the uploaded images will no longer be visible. |
| Type? | bug fix |
| BC breaks? | no |
| Deprecations? | no |
| Fixed ticket? | Fixes #369 |
| Sponsor company | @codencode |
| How to test? |
Hello @Codencode!
This is your first pull request on blockreassurance repository of the PrestaShop project.
Thank you, and welcome to this Open Source community!
Hi @florine2623,
I think I understand your issue, so let me explain how the PR works. When you upload a new image, the system saves the "relative" path in the database. My PR changes the way the system saves the image path in the database, but it is not retroactive, so it won't modify paths that are already in the database. Therefore, you should try it this way:
- Install my PR
- Reset the module
- Upload the images
- Change the PrestaShop installation folder
- Perform your checks.
Thanks for the explanation, it was helpful ! It is QA ✅
Perfect, I'm glad the explanation was helpful!
Thank you!