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

Custom search via hook_civicrm_queryObject (Advance search, CiviBooking Search) are not working properly

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Blocker
    • Resolution: Won't Fix
    • Affects Version/s: 4.4.0
    • Fix Version/s: 4.4.1
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      As a CiviBooking has its own individual search which extends CRM_Contact_BAO_Query_Interface see the class https://github.com/compucorp/civibooking/blob/master/CRM/Booking/BAO/Query.php and we use hook_civicrm_queryQbjects to add Booking Query class as below:

      function booking_civicrm_queryObjects(&$queryObjects, $type) {
      if ($type == 'Contact')

      { $queryObjects[] = new CRM_Booking_BAO_Query(); }

      }

      Everything was working ok on the CiviCRM 4.4beta5 version but it stops working on CiviCRM 4.4.0 stable when you perform the contact search it seems that the contact search is using CRM_Booking_BAO_Query to query instead of using it own search class and if we remove this hook. The Booking search stops working.

        Attachments

          Activity

            People

            • Assignee:
              deepak Deepak Srivastava
              Reporter:
              erawat Erawat Chamanont
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: