Project

General

Profile

Actions

Bug #4197

closed

Custom Value conditional not working properly for fields

Added by krileon almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
30 August 2013
Due date:
% Done:

100%

Estimated time:

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 #1

Updated by krileon almost 9 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

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 );
}

Actions #2

Updated by krileon almost 9 years ago

  • Target version set to 3.0.11
Actions #3

Updated by krileon almost 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF