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 »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contact Dashboard does not filter the list of Campaign Pages
Pages: [1]

Author Topic: Contact Dashboard does not filter the list of Campaign Pages  (Read 4686 times)

RachelWright

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 3
  • CiviCRM version: 4.2.7
  • CMS version: Joomla 2.5.17
  • MySQL version: 5.5.37
  • PHP version: 5.4.26
Contact Dashboard does not filter the list of Campaign Pages
June 13, 2013, 01:21:27 pm
The contact dashboard has a great feature that lists Contributions you could sign up for a Personal Campaign Page, which is great, except that it doesn't filter out pages that are no longer active. If you set a page to not active, it still displays it as a list item on the contact dashboard, but shows no name. Nor does it properly pull the end date. Even if you have an enddate set in the contribution set up screen it always defaults to "ongoing".

I was able to reproduce this on the Joomla demo site, if you login inas the admin and click "My Contact Dashboard" you should see a blank campaign in the Personal Campaign Pages section.

I've peeked around the template fiel for this but was unable to trace the function that is listing these pages. I'd imagine it's as easy as an if statement, if "is_active" but I'm not sut where to add that. Any suggestions!

RachelWright

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 3
  • CiviCRM version: 4.2.7
  • CMS version: Joomla 2.5.17
  • MySQL version: 5.5.37
  • PHP version: 5.4.26
Re: Contact Dashboard does not filter the list of Campaign Pages
June 17, 2013, 11:30:59 am
I was able to figure this out by adding the 'is_active' variable to the pcpBlock array. In the PCP>BAO>PCP php file.

Code: [Select]
$pcpBlock[] = array(
        'pageId' => $pcpBlockDao->target_entity_id,
        'pageTitle' => $pageTitle,
        'action' => $action,
'pageTitleTest' => $pageTitleTest,
'is_active' => $pcpBlockDao->is_active, //allows PcpUserDashboard to filter by active pages
      );

I then was able to work in the PcpUserDashboard template file and add an if statement {if $row.is_active eq'1'}. And voila only currently active pages are listed!!!

I am not sure how to submit a bug report (or issue tracker if that's what it should be??), but if someone points me in the right direction I will.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contact Dashboard does not filter the list of Campaign Pages

This forum was archived on 2017-11-26.