pdir/contao-survey

Question type "Matrixfrage": Using the checkbox "Fragentitel nicht anzeigen" leads to an error

Closed this issue · 1 comments

Bug description

When using the question type "Matrixfrage" you cannot use the checkbox "Fragentitel nicht anzeigen".

It leads to an error:
request.CRITICAL: Uncaught PHP Exception TypeError: "strlen(): Argument #1 ($string) must be of type string, int given" at /html/contao413/vendor/pdir/contao-survey/src/Resources/contao/forms/FormQuestionWidget.php line 184 {"exception":"[object] (TypeError(code: 0): strlen(): Argument #1 ($string) must be of type string, int given at /html/contao413/vendor/pdir/contao-survey/src/Resources/contao/forms/FormQuestionWidget.php:184)"} []

Other question types are working when the checkbox is ticked.

Steps to reproduce

s. above

Expected behavior

One can use "Fragentitel nicht anzeigen".

Screenshots

Bildschirmfoto 2023-09-12 um 12 18 25

Environment

MacOS 13.4.1
PHP 8.2.5
Contao 4.13.30
Firefox 116.0.3

This has been fixed in dcd2966 (but hasn't been tagged in a release yet).