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

DrupalBase uses wrong properties for $language global when using Backdrop

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.7
    • Fix Version/s: None
    • Component/s: Backdrop Integration
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      User and Admin Doc
    • Funding Source:
      Contributed Code

      Description

      On the user account view and when editing a contact, I get a bunch of these errors:

      Notice: Undefined property: stdClass::$language in CRM_Utils_System_DrupalBase->getUFLocale() (line 414 of /srv/bindings/521034bafb6846d490d40663874587fc/code/modules/civicrm/CRM/Utils/System/DrupalBase.php).
      

      For Backdrop CMS there is no property $language->language. It is now $language->langcode.
      I'd assume that this sort of stuff needs to get moved out or overridden in the DrupalBase class and put into the Backdrop class.

        Attachments

          Activity

            People

            • Assignee:
              quicksketch Nate Haug
              Reporter:
              herb@freeform Herb
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: