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

Drupal - Views integration - views handler civicrm_handler_field_relationship_type.inc uses incorrect field name

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.4
    • Fix Version/s: 3.4.5
    • Labels:
      None

      Description

      In function construct( ) of civicrm_handler_field_relationship_type.inc, the following is used:

      $relationshipType_array = CRM_Core_PseudoConstant::relationshipType( );

      This means a default value for a parameter of CRM_Core_PseudoConstant::relationshipType( ) will be used. From PseudoConstant.php:

      public static function &relationshipType( $valueColumnName = 'label', $reset = false )
      {

      However later in civicrm_handler_field_relationship_type.inc the call is:
      foreach ($relationshipType_array as $id => $value_array )

      { $options[$id] = $value_array['name_a_b']; }

      It should be replaced by:
      foreach ($relationshipType_array as $id => $value_array )

      { $options[$id] = $value_array['label_a_b']; }

        Attachments

          Activity

            People

            • Assignee:
              rohan Rohan S. Chavan
              Reporter:
              danilad Danila Deliya
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10 minutes
                10m
                Remaining:
                Remaining Estimate - 10 minutes
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified