removed checked from php loop

This commit is contained in:
jorge 2023-01-26 16:37:42 +01:00
parent 1695c53837
commit bce9973189
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ if( ! function_exists( 'ofisuport_ajuts_filters_form') ) {
<?php foreach( $fields['choices'] as $choicevalue => $choicelabel ) { ?> <?php foreach( $fields['choices'] as $choicevalue => $choicelabel ) { ?>
<div class="filter" data-filter="<?php echo $fields['name'];?>"> <div class="filter" data-filter="<?php echo $fields['name'];?>">
<input class="ofisuport-filter" type="checkbox" name="<?php echo $fields['name'];?>" <?php if( in_array($choicevalue,$filteredvalues['value']) ) { echo 'checked';}; ?> value="<?php echo $choicevalue ?>" /> <input class="ofisuport-filter" type="checkbox" name="<?php echo $fields['name'];?>" <?php //if( in_array($choicevalue,$filteredvalues['value']) ) { echo 'checked'; }; ?> value="<?php echo $choicevalue ?>" />
<label for="<?php echo $choicevalue; ?>"><?php echo $choicelabel;?></label> <label for="<?php echo $choicevalue; ?>"><?php echo $choicelabel;?></label>
</div> </div>