Commit eec06f53c5da3dcadaa3be600c7ea8a64349d43f
1 parent
ec89ec72
symptom fix - key the value-array on the lookup id, so that even if we
(somehow) have multiple possible versions coming in we don't display them to the end user. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3801 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
lib/metadata/metadatautil.inc.php
| ... | ... | @@ -92,7 +92,7 @@ class KTMetadataUtil { |
| 92 | 92 | foreach ($aValues as $iFieldId => $aValueIds) { |
| 93 | 93 | $aValues = array(); |
| 94 | 94 | foreach ($aValueIds as $iLookupId) { |
| 95 | - $aValues[] = MetaData::get($iLookupId); | |
| 95 | + $aValues[$iLookupId] = MetaData::get($iLookupId); | |
| 96 | 96 | } |
| 97 | 97 | $aReturn[$iFieldId] = array( |
| 98 | 98 | 'field' => DocumentField::get($iFieldId), | ... | ... |