Open epgrande opened 5 months ago
Thanks for reporting this @epgrande . We're discussing this field at our Tech Drop-in. This could be related to https://github.com/localgovdrupal/localgov_workflows/issues/77
From a first pass over this:-
It seems possible to get away from the error by re-loading (when not submitting the form, so fresh) the /admin/config/regional/content-language
page, and then making sure the Review date
is not ticked. This might require unchecking the whole content type, checking it again, to be able to get to the individual field.
Sadly the first suggested fix https://github.com/localgovdrupal/localgov_workflows/issues/77#issuecomment-1929338615 does not seem to fix this one, as it would seem a computed field is always in the list https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/content_translation/content_translation.admin.inc?ref_type=heads#L141 and if it's checked it fails at https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/content_translation/content_translation.admin.inc?ref_type=heads#L368 where it got the config from https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/content_translation/content_translation.admin.inc?ref_type=heads#L356 which as it's getting per bundle you'd assume shouldn't be NULL?
See #77 - PR #81 fixes this issue
With localgov_review_date module installed (from localgov_workflows v. 1.2.2, Drupal v. 10.2.2), in the page
/admin/config/regional/content-language
, after enabling translation for various content types (checking all the boxes, including "Review date"), saving and editing again the configuration (e.g. disabling content translation), the following errors are thrown.