It seems to be related to this piece of code, however this is a unchanged piece of code and in place since prior versions of CGFB.Debug: (0.252318) - (net usage: 8640928) - (peak: 9083296)
test1 inschrijven - inschrijven
Code: Select all
<div class="row">
<label><input class="radio-inline" type="radio" name="mailing" value="inschrijven" data-cgbf-label='Inschrijven' data-cgbf-selected={$form_data->mailing|default:'inschrijven'}> Inschrijven</label>
<label><input class="radio-inline" type="radio" name="mailing" value="uitschrijven"/> Uitschrijven</label>
</div>
Code: Select all
$nodes = $this->getInputsByType('radio');
if( $nodes ) {
foreach( $nodes as $node ) {
$tmp = $this->getAttributesArray( $node->attributes );
if( !($attr = $node->getAttribute('data-cgbf-selected')) ) continue;
debug_display('test1 '.$attr.' - '.$node->getAttribute('value'));
if( $node->getAttribute('value') == $attr ) $node->setAttribute('checked','checked');
}
}