Attempt 2 at fixing the profile fields issue (this one actually fixes the issue!)
This commit is contained in:
parent
dd21fce6e3
commit
3d67b59238
1 changed files with 2 additions and 2 deletions
|
@ -394,6 +394,8 @@ switch($profileMode) {
|
||||||
|
|
||||||
// using field infos as the basis for now, uses the correct ordering
|
// using field infos as the basis for now, uses the correct ordering
|
||||||
foreach($profileFieldInfos as $fieldInfo) {
|
foreach($profileFieldInfos as $fieldInfo) {
|
||||||
|
unset($fieldValue);
|
||||||
|
|
||||||
foreach($profileFieldValues as $fieldValueTest)
|
foreach($profileFieldValues as $fieldValueTest)
|
||||||
if($fieldValueTest->getFieldId() === $fieldInfo->getId()) {
|
if($fieldValueTest->getFieldId() === $fieldInfo->getId()) {
|
||||||
$fieldValue = $fieldValueTest;
|
$fieldValue = $fieldValueTest;
|
||||||
|
@ -414,8 +416,6 @@ switch($profileMode) {
|
||||||
if($fieldFormat->hasLinkFormat())
|
if($fieldFormat->hasLinkFormat())
|
||||||
$profileFieldLinkValues[$fieldName] = $fieldFormat->formatLink($fieldValue->getValue());
|
$profileFieldLinkValues[$fieldName] = $fieldFormat->formatLink($fieldValue->getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
unset($fieldValue);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Template::set([
|
Template::set([
|
||||||
|
|
Loading…
Reference in a new issue