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

tax rates do not cache if empty

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.10
    • Fix Version/s: 4.7
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      If no tax rates are set this query happens for every contribution that is imported (including via api) as the caching does not work

      /**

      • Get all tax rates.
        *
      • The static array tax rates is returned
        *
      • @return array
      • array list of tax rates with the financial type
        */
        public static function getTaxRates() {
        if (!self::$taxRates)
        Unknown macro: { self}

      return self::$taxRates;
      }

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: