Actions
Bug #4197
closedCustom Value conditional not working properly for fields
Description
It's not able to properly parse out the fieldname when Custom Value is used. Need to add an empty first value in this case.
Actions
Added by krileon over 11 years ago. Updated over 11 years ago.
Description
It's not able to properly parse out the fieldname when Custom Value is used. Need to add an empty first value in this case.
Quickfix as follows.
IN: /components/com_comprofiler/plugin/user/plug_cbconditional/cbconditional.class.php
ON: Line 793
FROM:$fieldPair = explode( ',', $params->get( 'cbconditional_field' . $conditional, null ) );
TO:$fieldPair = explode( ',', $params->get( 'cbconditional_field' . $conditional, null ) );
if ( count( $fieldPair ) < 2 ) {
array_unshift( $fieldPair, 0 );
}