Fix checkboxlist label missing if $option is not string or array (#5463)

This commit is contained in:
Frendhi 2021-01-18 16:23:01 +07:00 committed by GitHub
parent 47b2aa0f15
commit d2b3f865f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@
$index++;
$checkboxId = 'checkbox_'.$field->getId().'_'.$index;
if (!in_array($value, $checkedValues)) continue;
if (is_string($option)) $option = [$option];
if (!is_array($option)) $option = [$option];
?>
<div class="checkbox custom-checkbox">
<input
@ -71,7 +71,7 @@
<?php
$index++;
$checkboxId = 'checkbox_'.$field->getId().'_'.$index;
if (is_string($option)) $option = [$option];
if (!is_array($option)) $option = [$option];
?>
<div class="checkbox custom-checkbox">
<input