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

CRM_Core_PseudoConstant::greeting() cache bug

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.0.2
    • Fix Version/s: 4.1.0
    • Component/s: None
    • Labels:
      None

      Description

      CRM_Core_PseudoConstant::greeting() will cache in CRM_Core_PseudoConstant::$greeting. The cache is populated only once but the cache is incomplete - it is dependent on the value of $filter. If CRM_Core_PseudoConstant::greeting() is called again with a different value for $filter, the cache (populated using the original value of $filter) is consulted. The function then returns this cached value which is incorrect for other values of $filter.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              disaacs David
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: