Issue Bug Closed

#96023Enabeling settings.overrideFinishers in form plugin results in PHP Warning: Undefined array key "translation.language" in frontend

Simon Vincent Ackermann 11/18/21, 09:30 updated 10/04/22, 14:13

Description

With php 8 I am getting an PHP Warning: Undefined array key “translation.language” whene the settings.overrideFinishers is set in the form plugin
Here is a sample of the form definition that causes the problem

...
finishers:
    -   identifier: EmailToReceiver
        options:
            subject: 'New contact: {subject}'
            recipients:
                admin@company.ch: 'Company name'
            senderAddress: '{email}'
            senderName: '{name}'
            replyToRecipients: { }
            carbonCopyRecipients: { }
            blindCarbonCopyRecipients: { }
            format: 'html'
            attachUploads: 'true'
            translation:
                language: ''
            useFluidEmail: 'true'
            title: 'New contact from the website'
...

Reviews 2