Giter VIP home page Giter VIP logo

org.civicrm.nonprimaryquicksearch's Introduction

Quick Search - Non-primary

org.civicrm.nonprimaryquicksearch

Overview

This extensions allows user to do quick search on contact with non primary details if 'Search Primary Details Only' option is disabled under Search preference setting.

Installation

  1. If you have not already done so, setup Extensions Directory
  2. Go to Administer >> System Settings >> Directories
    1. Set an appropriate value for CiviCRM Extensions Directory. For example, for Drupal, [civicrm.files]/ext/
    2. In a different window, ensure the directory exists and is readable by your web server process.
  3. Click Save.
  4. If you have not already done so, setup Extensions Resources URL
  5. Go to Administer >> System Settings >> Resource URLs
    1. Beside Extension Resource URL, enter an appropriate values such as [civicrm.files]/ext/
  6. Click Save.
  7. Install 'Quick Search - Non-primary' extension
  8. Go to Administer >> Customize Data and Screens >> Manage Extensions.
  9. Click on Add New tab.
  10. If 'Quick Search - Non-primary' is not in the list of extensions, manually download it and unzip it into the extensions direction setup above, then return to this page.
  11. Beside 'Quick Search - Non-primary', click Download.
  12. Review the information, then click Download and Install.

This extension has been developed and is being maintained by Pradeep Nayak.

org.civicrm.nonprimaryquicksearch's People

Contributors

pradpnayak avatar

Watchers

James Cloos avatar  avatar

org.civicrm.nonprimaryquicksearch's Issues

Contacts returned multiple times

Hi Pradeep,

I haven't tested your code yet - but I just read it, and I wrote the patch for core that does the same thing you're doing.

However, consider if you have contact "Jon Goldberg" with two emails, "[email protected]" and "[email protected]".

Searching for jon will return "Jon Goldberg" in the Quick Search results twice. Steps must also be taken to remove duplicates, but still respect the "number of results returned" value.

The solution is to use a GROUP_BY but this isn't trivial when FULL_GROUP_BY is enabled. In your extension you can just disable for that MySQL session; in core I don't think that's a solution people will accept (though who knows?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.