CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Where is the code for the Advanced Search Form
Pages: [1]

Author Topic: Where is the code for the Advanced Search Form  (Read 536 times)

Lionsharz

  • I post occasionally
  • **
  • Posts: 76
  • Karma: 0
    • www.ulearnschool.com
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • PHP version: 5.3 / 5.4
Where is the code for the Advanced Search Form
October 14, 2013, 12:43:16 pm
Dunno if this is "developer chat" but can someone tell me where the form elements can be found for the Advanced Search? Lobo pointed towards http://developer.civicrm.org/ but its 404. I looked at the basic codebase organization but left none the wiser.

Anyone know where to direct me? :/
www.ulearnschool.com

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Where is the code for the Advanced Search Form
October 14, 2013, 01:30:42 pm
Well there's the form layer, the controller layer, and the template. And the form is built modularly, component by component (so if you have CiviContribute enabled you get the contributions pane) Not sure which one you are looking for.
Check for starters:
CRM/Contact/Form/Search/Advanced.php
templates/CRM/Contact/Form/Search/Advanced.tpl
Try asking your question on the new CiviCRM help site.

Lionsharz

  • I post occasionally
  • **
  • Posts: 76
  • Karma: 0
    • www.ulearnschool.com
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • PHP version: 5.3 / 5.4
Re: Where is the code for the Advanced Search Form
October 15, 2013, 03:11:16 am
Thanks Coleman - I'll start searching there. I just want an additional checkbox to appear in the Advanced Search for Contribution Status "In Progress". We use that Status and its currently one of the ones that doesn't appear. Any hints?  ???
www.ulearnschool.com

Lionsharz

  • I post occasionally
  • **
  • Posts: 76
  • Karma: 0
    • www.ulearnschool.com
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • PHP version: 5.3 / 5.4
Re: Where is the code for the Advanced Search Form
October 17, 2013, 06:29:59 am
I don't know if this will break other things but here is what I did. File sites/all/modules/civicrm/CRM/Contribute/BAO/Query.php @ line 762, I commented out the unset of those contribution status'

    $statusValues = CRM_Core_OptionGroup::values("contribution_status");
    // Remove status values that are only used for recurring contributions or pledges (In Progress, Overdue).
    unset($statusValues['5']);
    unset($statusValues['6']);

To:

    $statusValues = CRM_Core_OptionGroup::values("contribution_status");
    // Remove status values that are only used for recurring contributions or pledges (In Progress, Overdue).
    //unset($statusValues['5']);
    //unset($statusValues['6']);
www.ulearnschool.com

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Where is the code for the Advanced Search Form

This forum was archived on 2017-11-26.