- Issue created by @johnv
- Status changed to Fixed
about 1 year ago 10:45am 7 November 2023 Automatically closed - issue fixed for 2 weeks with no activity.
The season object has an (untranslated) name (like machine_name), and a translated label(), which translates the name.
Let us remove the translation. Trigger is this issue: 🐛 Ajax error on [Add exception] button if "seasons" is activated Active
There are many core issues like this: core issues with 'LogicException: The database connection is not serializable.' →
+ // Enable locale module 'User interface translation.
+ // Enable both exceptions and season in widget.
+ // Edit with non-english page /nl/node/8/edit (here NL, but DE, or any other non-EN language)
+ // Click 'Add Exception' button.
+ // Check if an empty exception is added.
Remove translation from standard name.
Remove translation from label().
Alternatives:
Use t() instead of $this->t()
add 'use DependencySerializationTrait;' statement in OfficeHoursSeason object.
Season name is not translated anymore.
$season->label() gives untranslated season name.
Fixed
1.12
Code - widget
Automatically closed - issue fixed for 2 weeks with no activity.