Project

General

Profile

Bug #2713

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

Added by krileon about 9 years ago. Updated almost 9 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

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

History

#1 Updated by krileon about 9 years ago

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 |*|.

#2 Updated by krileon about 9 years ago

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

#3 Updated by beat almost 9 years ago

  • 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 .

#4 Updated by beat almost 9 years ago

  • Status changed from Closed to New

#5 Updated by krileon almost 9 years ago

Bug also present in IF usage and userfield usage.

#6 Updated by beat almost 9 years ago

  • 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

Also available in: Atom PDF