Problem/Motivation
If I run the multilingual moderation test and look at the database after, I get something like the following:
mysql> select langcode,revision_id,workflow,moderation_state from test89968991content_moderation_state_field_revision ORDER BY langcode;
+----------+-------------+-----------+------------------+
| langcode | revision_id | workflow | moderation_state |
+----------+-------------+-----------+------------------+
| en | 1 | editorial | draft |
| en | 2 | editorial | draft |
| en | 3 | editorial | draft |
| en | 4 | editorial | published |
| en | 5 | editorial | published |
| en | 6 | editorial | published |
| en | 7 | editorial | draft |
| en | 8 | editorial | draft |
| fr | 1 | NULL | draft |
| fr | 2 | NULL | draft |
| fr | 3 | NULL | published |
| fr | 4 | NULL | published |
| fr | 5 | NULL | draft |
| fr | 6 | NULL | published |
| fr | 7 | NULL | published |
| fr | 8 | NULL | draft |
+----------+-------------+-----------+------------------+
'workflow' is defined as a translatable field, so when the translation is added, the workflow isn't copied from the source language.
Proposed resolution
Either:
- Make workflow non translatable (why is it in the first place?)
- Copy the workflow field from the source translation to the new, when creating the entity.
Remaining tasks
Agree, patch.