Monday, November 29, 2021
1 change · master
Resolved issues and error corrections
The manual "Run Now" action for scheduled jobs now behaves the same way as automatic execution. This prevents user language settings from changing results unexpectedly, making logs and scheduled job behavior more consistent.
Original PR description
Change the lang of your user, translate the name of some records (e.g. translate the "Customizable Desk" product to "Bureau personnalisable") and create a cron that simply log the name of that record. Schedule the cron to be automatically executed, check the created log entry (`setting > technical > logging`) it is the default english name. Go back to the cron, click "run now" contextual button, check the created log entry: it is the translated name. When they are automatically executed by the cron worker, crons run with a minimal context without lang. When the user clicks on the "run now" button his context was wrongly used while executing the code. Closes #45388