Attempt 2 at fixing the profile fields issue (this one actually fixes the issue!)

This commit is contained in:
flash 2023-07-22 21:25:45 +00:00
parent dd21fce6e3
commit 3d67b59238

View file

@ -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([