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

dbLocale is not always initialized

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.1, 4.1.5
    • Fix Version/s: 4.4.0
    • Component/s: None
    • Labels:
      None

      Description

      Steps :

      • create a drupal civicrm (drupal 6 or 7)
      • activate multilingual mode
      • add a language
      • run : drush provision-verify

      Error :
      Undefined offset: 1 backend.inc:163
      Undefined variable: output backend.inc:170

      After debugging, the problem happen because dbLocale is not defined in CRM_Core_DAO::query().
      When i initialize the value, it's working fine. I don't why in this context dbLocale is not initialized but maybe we can force the initialization of dbLocale when we are in multilingual mode and the locale is empty ?

        Attachments

        1. CRM-10606.patch
          0.8 kB
          Samuel Vanhove
        2. CRM-10606-4.1.x.patch
          0.7 kB
          Samuel Vanhove
        3. CRM-10606-4.2.7.patch
          0.4 kB
          Samuel Vanhove

          Activity

            People

            • Assignee:
              samuelsov Samuel Vanhove
              Reporter:
              samuelsov Samuel Vanhove
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: