- Issue created by @fran seva
- Issue was unassigned.
- Status changed to Needs review
10 months ago 12:15pm 11 September 2023 - last update
10 months ago 8 pass
When user allow sitewide alerts to be translatable and then create one content and translate it, the entity does not update the Active (status) so it keeps always the same value and for example cannot be disable never.
After review Entity definition (annotation and class SitewideAlert) I didn't found anything wrong.
I think the solution could it be set entity value in SitewideAlertForm::save method doing something like
// Set status value.
$entity->set('status', $form_state->getValue('status'));
but that's a workaround because the problem only happen when translation is enable so there should be something else.
Needs review
2.1
Code