Problem/Motivation
Filtering by "Job type" at /admin/tmgmt/job_items errors with...
TypeError: addcslashes(): Argument #1 ($string) must be of type string, array given in addcslashes() (line 1089 of /var/www/html/web/core/lib/Drupal/Core/Database/Connection.php).
Steps to reproduce
- Install a vanilla Drupal instance
- Composer require
drupal/tmgmt - Enable modules: locale, tmgmt_locale, tmgmt_local
- Add a new language, say Italian
- Visit few pages in Italian, so that Locale tables get populated
- Edit current user profile and, under "Translation skills", configure "From: English" and "To: Italian". Save.
- Visit
/admin/tmgmt/jobsand add a new continuous job - Visit
/admin/tmgmt/sources. Select all Source texts. Press "Request translation" - Visit
/admin/tmgmt/job_items - Select "Continuous" from "Job type" and press "Apply"
You should see the error.
Proposed resolution
Fix it
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
Re-exported the tmgmt_translation_all_job_items view as default content
Issue fork tmgmt-3578626
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
claudiu.cristeaComment #4
claudiu.cristeaProbably an update path test would be too much.
Ready for review.
Comment #5
andras_szilagyi commentedLooks good
Comment #6
claudiu.cristeaImproved the update path
Comment #7
andras_szilagyi commentedOk, I went over everything again and it is still good
Comment #9
claudiu.cristeaThank you for review