fix
This commit is contained in:
parent
8bb0b73733
commit
a382f9d754
|
|
@ -284,7 +284,7 @@ class Html
|
||||||
$inputType = $attributes->getNamedItem('type')->value;
|
$inputType = $attributes->getNamedItem('type')->value;
|
||||||
switch ($inputType) {
|
switch ($inputType) {
|
||||||
case 'checkbox':
|
case 'checkbox':
|
||||||
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === "true" ? true ? false;
|
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === "true" ? true : false;
|
||||||
$textrun = $element->addTextRun();
|
$textrun = $element->addTextRun();
|
||||||
$textrun->addFormField('checkbox')->setValue($checked);
|
$textrun->addFormField('checkbox')->setValue($checked);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue