Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-14824

contributions of incorrect values created under some circumstances

    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

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m