Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
To reproduce, install google translator as the only translator, make sure quick translation is enabled and then attempt to translate a job in the UI. It fails with a "The job has no provider assigned." exception, leaving the job in a broken, undefined state.
This is regression was caused with the refactoring for continuous translation and we have a single code base now for translating a whole job and translating some items, so we get the items and then the job again from them.
Proposed resolution
Save the job before completing quick-checkout.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#5 | save-fails-2842321-5.patch | 2.51 KB | Berdir |
| |||
#5 | save-fails-2842321-5-test-only.patch | 1.84 KB | Berdir |
#4 | save-fails-2842321-4.patch | 1.28 KB | Berdir |
| |||
#2 | tmgmt-quick-checkout-save-2842321-1.patch | 686 bytes | Berdir |
|
Comments
Comment #2
BerdirNot sure how to write a test for this, maybe by loading and accessing the job translator in the test translator plugin.
Comment #3
BerdirComment #4
BerdirTest translator doesn't use that method for normal translation. Lets see what happens if we do this...
Comment #5
BerdirThis should work as a test-only patch.
Comment #8
BerdirCommitted.