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) »
  • Developer Discussion »
  • Report and Search UI Discussion (Moderators: CiviTeacher.com, TwoMice) »
  • Add "In Progress" To Advanced Search Form
Pages: [1]

Author Topic: Add "In Progress" To Advanced Search Form  (Read 738 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
Add "In Progress" To Advanced Search Form
October 14, 2013, 01:01:41 pm
Hi

I've sorta already asked this so I hope its not rude posting here too. This one seems pretty small - I would like a checkbox for the Contribution Status "In Progress" to appear in the Advanced Search form. The other statuses are already there (Completed, Pending...).

a) How can I achieve this?
b) Could someone point me in the direction of the code (or multiple files) that controls the display of this element.

Thanks for your time!
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: Add "In Progress" To Advanced Search Form
October 17, 2013, 06:30:17 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) »
  • Developer Discussion »
  • Report and Search UI Discussion (Moderators: CiviTeacher.com, TwoMice) »
  • Add "In Progress" To Advanced Search Form

This forum was archived on 2017-11-26.