Open Source
Shaping the tools I use every day, one pull request at a time
A hand-picked selection: only the contributions worth reading about, not every merged pull request. Articles about Magento and Adobe Commerce are on the blog.
Do not prefix list entries with their index in NestedArrayAdapter — on GitHub
NestedArrayAdapter formatted every scalar as key=value, so 'product_websites' => ['base', 'base2'] became 0=base, 1=base2, which the importer rejects. Scalars with an integer key are now returned unchanged, giving base, base2.
Remove translations that leak into country names and the word "for" — on GitHub
Magento reads only the first two columns of a language pack row, so three rows meant for Amazon_Core applied everywhere. The directory API returned German names for the United Kingdom and United States in full_name_english, and the word for became an unsubscribe sentence. The three rows are deleted.
Fix the empty current path for the home page in the Excluder observer — on GitHub
For the home page, trim() left https://host, which has no path, so parse_url() returned null and the check that defaults the path to / never fired. The JR-Current-Path header stayed empty and a / wildcard exclusion never matched the home page. The observer now treats null like an empty string before defaulting to /.
Use the store-aware secure link base URL and drop the phantom default-group cron job — on GitHub
Generated files built links from the web base URL, which has no store code and resolves to http in CLI and cron, so non-default store views linked to redirecting pages. They now use getBaseUrl(URL_TYPE_LINK, $store->isFrontUrlSecure()). A stray crontab block in etc/config.xml that failed with No callbacks found is removed.
Remove a grid filter from the state when its value is cleared — on GitHub
Filter::isEmpty() only treated null as empty, so a cleared select ('') or an empty multiselect ([]) stayed in the state and was applied as a real condition. Empty values of those kinds now count as empty, and the filter action drops the stored filter instead of keeping the previous one.
Fix inverted singular and plural in the category item amount — on GitHub
With “Show item amount” enabled, the list rendered “(1 items)” for one product and “(0 item)” for none, because the plural was chosen for any count above zero. The three templates now read the count once and use “item” only when it equals 1.
Return the skipped result when ElasticSuite is not enabled — on GitHub
The check set the skipped status when ElasticSuite was disabled but carried on and resolved the ElasticSuite client from the object manager, which throws when the module is not installed. It now returns the skipped result straight away, as ElasticSuiteShards already does.
Keep cancelled orders cancelled when a paid status arrives — on GitHub
A prepayment order cancelled in the admin can still be paid by bank transfer, because the admin cancel is offline and the PAYONE transaction stays open. When the paid status arrived, the mapping applied the configured status without checking the order state, and the Paid observer tried to invoice an order whose items were all cancelled. Both now leave a cancelled order cancelled.
Strip refund suffix from the PayU order id on repeated refunds — on GitHub
RefundRequestBuilder removed only -capture from last_trans_id, but after the first online refund Magento stores -capture-refund, so the second refund went to orders/<id>-refund/refund. It now strips every trailing -capture and -refund suffix.
Only merged work is listed here, and only the parts worth a comment — the full history, including everything still in review, lives on GitHub .
The plugins read the validator result backwards, so exactly the clients that mishandle
SameSite=None(iOS 12, old Chromium and UC Browser) received it. They now apply the configured value only when the validator saysNoneis safe.SwitchSameSitealso no longer dereferences null cookie metadata when none is passed.