PrestaShop Core Weekly - Week 14 of 2022
An inside look at the PrestaShop codebase
This edition of the Core Weekly report highlights changes in PrestaShop’s core codebase from Monday 4th to Sunday 10th of April 2022.
General messages
Dear developers,
Last week was merged a Pull Request that change the way used to escape Smarty output. This should fix multiple issues introduced by the security bugfixes of PrestaShop 1.7.8.3 (see the bug report) and will be delivered with the release of PrestaShop 1.7.8.6 in a few weeks.
Releases
- Statssales module: v2.1.0
- Prestashop UI Kit: v1.2.5
- Blockreassurance module: v5.1.1
- PrestaShop module parser: v1.2.1
- GDPR module: v1.4.1
- Circuit-breaker: v4.0.1
- Distribution-api: v0.0.1
A quick update about PrestaShop’s GitHub issues and pull requests:
- 55 new issues have been created in the project repositories;
- 51 issues have been closed, including 14 fixed issues on the core;
- 119 pull requests have been opened in the project repositories;
- 114 pull requests have been closed, including 102 merged pull requests.
Code changes in the ‘develop’ branch
Core
- #28119: Bump phpstan/phpstan to 1.5.4, by @Progi1984
- #28088: Simplify
LoadServicesFromModulesPass::process
. Thank you @PululuK - #28020: Remove deprecated methods in CacheClearer class, by @PierreRambaud
- #27962: Added module psgdpr, by @Progi1984
- #27960: Remove Adapter\Tools::link_rewrite, by @PierreRambaud
- #27957: Remove getSafeModeStatus method, by @PierreRambaud
- #27657: Deprecate cleanNonUnicodeSupport function. Thank you @davidglezz
Back office
- #28178: Update prestakit to 1.2.5, by @jolelievre
- #28172: Remove unwanted pnpm-lock.yml file, by @NeOMakinG
- #28146: Update wording of a tooltip in products settings page - fix #13841. Thank you @marsaldev
- #28118: Fix contextual notification in Product Page v2 Edit Page, by @Progi1984
- #28104: Removed duplicate in SpecificPriceRule::getAffectedProducts, by @Progi1984
- #28050: Fix iframe modal scrollbars, by @jolelievre
- #27839: Wrong error message in logs. Thank you @tlgsoledis
- #27795: Fixed notice ‘Undefined index: reduction_applies’, by @Progi1984
- #27611: Use Vazir font with a node module instead of CDN, by @NeOMakinG
- #27440: Update BO architecture in product settings page, by @PierreRambaud
- #27439: Don’t use 0 value for carrier name. Thank you @okom3pom
- #26377: Allow to print order messages. Thank you @PululuK
- #25872: Make Shop Parameters > Order Settings forms multistore compatible. Thank you @micka-fdz
Front office
- #28117: Update function getCustomerOrders to avoid error. Thank you @NicolasCador
- #27292: Add category additional description. Thank you @Hlavtox
Tests
- #28181: Fix nightly 08/04/2022 - Fix default customer and address IDs. Thank you @nesrineabdmouleh
- #28170: Functional tests - Fix log tests. Thank you @nesrineabdmouleh
- #28168: Functional tests - Fix product settings tests. Thank you @nesrineabdmouleh
- #28163: Fix PHPstan error, by @jolelievre
- #28159: Functional tests - Add new test ‘Search, add and remove voucher from new order page’. Thank you @nesrineabdmouleh
- #28138: Fix nightly 05/04/2022 and fix some random errors. Thank you @nesrineabdmouleh
- #27945: Functional tests - Add new test ‘Add product to cart’ in BO. Thank you @nesrineabdmouleh
Code changes in the ‘1.7.8.x’ branch
Core
Back office
- #27806: Change the way that smarty is escaped to avoid exception when parsing. Thank you @Amoifr
- #27615: Fix header on default pages on mobile, by @NeOMakinG
- #27162: Increase maximum country state name length from 32 to 80 characters. Thank you @rickygzz
Front office
- #28112: Out of stock label displayed even stock management disabled. Thank you @Amit-Kumar-Tiwari-Webkul
- #28101: Remove .browserslistrc file on themes folder. Thank you @micka-fdz
- #28028: Remove duplicate error messages in account and address creation, by @atomiix
Code changes in modules, themes & tools
Nightly board
- #82: Bump moment from 2.24.0 to 2.29.2. Built by @dependabot[bot]
Prestashop UI Kit
- #190: Bump moment from 2.29.1 to 2.29.2. Built by @dependabot[bot]
- #189: Release 1.2.5, by @jolelievre
- #188: Bump version 1.2.5, by @jolelievre
- #186: Add rule to force disabled background on focus and hover, by @jolelievre
Classic theme
- #23: Added module
blockreassurance
in Core, by @Progi1984 - #22: Added module
psgdpr
in Core, by @Progi1984 - #18: Add category additional description. Thank you @Hlavtox
- #16: Fix: quickview width buggy on some products, by @NeOMakinG
GDPR module
- #170: Update anonymous password, by @PierreRambaud
- #169: Fix break lines in Help Section, by @Progi1984
- #168: Release 1.4.1, by @matks
- #167: Bump version to 1.4.1. Thank you @micka-fdz
- #166: Removed call to
api.addons.prestashop.com
, by @Progi1984 - #165: Remove the deprecated method
Tools::jsonDecode
, Fix Reset & Bump to 1.4.1, by @Progi1984
Customer reassurance block module
- #388: Fixes some bugs in Edit Page, by @Progi1984
- #387: Bump webpack from 5.71.0 to 5.72.0. Built by @dependabot[bot]
- #386: Release 5.1.1, by @Progi1984
- #385: Bump version to 5.1.1, by @Progi1984
- #384: Fixed path for custom images, by @Progi1984
- #383: Bump @babel/core from 7.17.8 to 7.17.9. Built by @dependabot[bot]
- #382: Bump eslint-plugin-import from 2.25.4 to 2.26.0. Built by @dependabot[bot]
- #381: Bump webpack from 5.70.0 to 5.71.0. Built by @dependabot[bot]
- #359: Removed unuseful dependencies, by @Progi1984
Faceted search module
- #643: Bump webpack from 5.71.0 to 5.72.0. Built by @dependabot[bot]
- #642: Bump @babel/core from 7.17.8 to 7.17.9. Built by @dependabot[bot]
- #641: Bump eslint-plugin-import from 2.25.4 to 2.26.0. Built by @dependabot[bot]
- #640: Bump ansi-regex from 3.0.0 to 3.0.1. Built by @dependabot[bot]
- #639: Bump webpack from 5.70.0 to 5.71.0. Built by @dependabot[bot]
Changes in developer documentation sources
- #1358: Backport 1313, by @matks
- #1357: Backport 1308, by @matks
- #1356: Backport of 1303, by @matks
- #1355: Backport 1293, by @matks
- #1354: Backport 1179, by @matks
- #1353: Backport 1240, by @matks
- #1352: Backport 1180, by @matks
- #1351: Backport 1183, by @matks
- #1350: Backport of PR 1123, by @matks
- #1349: Minor typo. Thank you @dpatou
- #1348: Fix module mail templates example. Thank you @PululuK
- #1347: Backport PR 1119, by @matks
- #1346: Unindent code block. Thank you @lmeyer1
- #1345: Example on how to handle translation of Javascript strings (backport. Thank you @lmeyer1
- #1344: Give an example on how to handle translation of Javascript strings.. Thank you @lmeyer1
- #1343: Add related PR instructions. Thank you @Hlavtox
- #1341: Fix MyGridDefinitionFactory code example. Thank you @adricorse
- #1328: Remove 1.7 core change pages, add link to 1.7 doc, by @matks
Distribution API
- #9: Add more info about modules, by @atomiix
- #8: Fix workflows, by @atomiix
- #7: Make distribution API upload assets itself, by @atomiix
The PrestaShop open source project
- #84: Introduce scoped maintainers, by @eternoendless
OnBoarding module
- #141: Bump eslint-plugin-import from 2.25.4 to 2.26.0. Built by @dependabot[bot]
Auto Upgrade module
- #473: Add pages to enable maintenance mode before upgrade, by @boubkerbribri
- #446: Add category additional description column during upgrade. Thank you @Hlavtox
Google Analytics module
- #116: Moved some code from footer to head tag, by @Progi1984
Core Weekly Generator tool
Traces
- #25: Bump guzzlehttp/psr7 from 1.6.1 to 1.8.5. Built by @dependabot[bot]
CsaGuzzle Bundle (fork)
- #25: Bump prismjs from 1.16.0 to 1.27.0. Built by @dependabot[bot]
Social Follow module
- #34: Add discord link. Thank you @marsaldev
Wishlist block module
- #146: Manage the state of the product depending on quantity in cart, by @NeOMakinG
Sales and orders statistics module
- #25: Fixed calculation in SQL query if there are no refunds, by @Progi1984
- #22: Release 2.1.0, by @Progi1984
Thank you to the contributors whose pull requests were merged since the last Core Weekly Report: @dependabot[bot], @Progi1984, @nesrineabdmouleh, @jolelievre, @PierreRambaud, @matks, @NeOMakinG, @lmeyer1, @atomiix, @marsaldev, @eternoendless, @micka-fdz, @dpatou, @boubkerbribri, @PululuK, @Hlavtox, @NicolasCador, @Amit-Kumar-Tiwari-Webkul, @adricorse, @jf-viguier, @MeKeyCool, @tlgsoledis, @Amoifr, @davidglezz, @okom3pom, @rickygzz!
Thank you to the contributors whose PRs haven’t been merged yet! And of course, a big thank you to all those who contribute with issues and comments on GitHub!
If you want to contribute to PrestaShop with code, please read these pages first:
…and if you do not know how to fix an issue but wish to report it, please read this: How to use GitHub to report an issue. Thank you!
Happy contributin’ everyone!