Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Critical
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.4.5
-
Fix Version/s: 4.4.7
-
Component/s: None
-
Labels:None
-
Documentation Required?:None
Description
Price fields of type 'Text' do not translate to the correct amount if the array has been iterated through already.
Presumable this only happens if a hook has touched them. The fault is the use of the key function which "key() returns the index element of the current array position. " which only works if the key is in the first index position.
Note I've seen incorrectly rendered prices sets on contact display as well - I think these are a separate (as yet unfound) instance of this or the problem pattern in CRM-14793 where PriceFieldIds & priceValueIds are transposed