blockreassurance icon indicating copy to clipboard operation
blockreassurance copied to clipboard

Fix: Problem with the blockreassurance module in case of a site in a subfolder

Open Codencode opened this issue 1 year ago • 1 comments

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?

Codencode avatar Sep 18 '24 15:09 Codencode

Hello @Codencode!

This is your first pull request on blockreassurance repository of the PrestaShop project.

Thank you, and welcome to this Open Source community!

ps-jarvis avatar Sep 18 '24 15:09 ps-jarvis

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.

Codencode avatar Mar 05 '25 11:03 Codencode

Thanks for the explanation, it was helpful ! It is QA ✅

Perfect, I'm glad the explanation was helpful!

Thank you!

Codencode avatar Mar 07 '25 10:03 Codencode