Project

General

Profile

Actions

Bug #2713

closed

Multi-valued CB substitutions failing to display and IF statements on multi-valued fields do not work

Bug #2713: Multi-valued CB substitutions failing to display and IF statements on multi-valued fields do not work

Added by krileon over 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
Start date:
15 August 2011
Due date:
% Done:

100%

Estimated time:
2:00 h

Description

Usage of [fieldname] appears to be failing for several field types. Drop-down fields confirmed not working.

https://www.joomlapolis.com/forum/154-advanced-members-support/160468-add-custom-cb-field-to-profile-page-title?limit=6&start=6


Files

2713.patch (1.14 KB) 2713.patch krileon, 16 August 2011 16:35
plugin.foundation.php (120 KB) plugin.foundation.php krileon, 14 September 2011 20:05
plugin.foundation.patch (1.25 KB) plugin.foundation.patch krileon, 31 October 2011 16:56

Updated by krileon over 14 years ago Actions #1

When using getField and returning the PHP values and the values is an array (in cases of select fields) it doesn't format them properly as Val1|*|Val2|*|etc.. but instead returns an array, the array needs to be processed into a string with a separator of |*|.

Updated by krileon over 14 years ago Actions #2

Attaching a CB 1.7 version of the plugin.foundation.php file with patch applied for users needing a quick fix.

Updated by beat about 14 years ago Actions #3

  • Subject changed from Several raw substitutions failing to display to Multi-valued CB substitutions failing to display
  • Status changed from Resolved to Closed
  • Estimated time set to 2:00 h

Fixed in r1572 .

Updated by beat about 14 years ago Actions #4

  • Status changed from Closed to New

Updated by krileon about 14 years ago Actions #5

Bug also present in IF usage and userfield usage.

Updated by beat about 14 years ago Actions #6

  • Subject changed from Multi-valued CB substitutions failing to display to Multi-valued CB substitutions failing to display and IF statements on multi-valued fields do not work
  • Status changed from Resolved to Closed

r1615 fixes as proposed in 2nd patch 2nd part of this bug: IF statements on multi-valued fields do not work

Actions

Also available in: PDF Atom