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

Using 'default_order', 'default_is_section', 'default_weight' in 'order_bys' and the need for 'default' => '1'

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.0, 4.1.1
    • Fix Version/s: 4.2.0
    • Component/s: CiviReport
    • Labels:

      Description

      Two of the supplied reports (Activity.php and Event/ParticipantListing.php) specify 'default_weight' in multiple 'order_bys' arrays, but don't specify 'default' => '1' so those 'order_bys' are not processed.

      There are two ways to fix this:

      (1) Form.php.diff provides an enhancement where if 'default_order', 'default_is_section', or 'default_weight' is specified, then 'default' => '1' is implied.

      (2) Activity.php.diff and ParticipantListing.php.diff update the 'order_bys' to include 'default' => '1'.

      Patch CRM-9838 is required for either of these options to work.

        Attachments

        1. Activity.php.diff
          1 kB
          Michael Labriola
        2. Form.php.diff
          0.9 kB
          Michael Labriola
        3. ParticipantListing.php.diff
          1 kB
          Michael Labriola

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              mhlabriola Michael Labriola
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: