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

Can't register to event, pseudo constant for locationtype translated now

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.0
    • Fix Version/s: 4.4.1
    • Component/s: None
    • Labels:
      None

      Description

      Hi,

      Test on a dutch version of civi that worked fine on 4.3.x, now when you try to register to an event, it fatals:
      "Selecteer een locatie type van Billing"
      (Please set a location type of Billing)

      with backtrace, comes from
      /CRM/Event/Form/Registration.php(398)

      $locationTypes = CRM_Core_PseudoConstant::get('CRM_Core_DAO_Address', 'location_type_id');
      // CRM-8108 remove ts from Billing as the location type can not be translated in CiviCRM!
      //$this->_bltID = array_search( ts('Billing'), $locationTypes );
      print_r($locationTypes);
      $this->_bltID = array_search('Billing', $locationTypes);
      if (!$this->_bltID)

      { CRM_Core_Error::fatal(ts('Please set a location type of %1', array(1 => 'Billing'))); }

      I'm not sure what's the right fix: is this to make CRM_Core_PseudoConstant NOT translate for location_type or revert CRM-8108

      Over to you...

      X+

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                colemanw Coleman Watts
                Reporter:
                xavier xavier dutoit
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: