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 CiviCampaign (Moderators: Kiran Jagtap, xavier) »
  • Disable Campaign button doesn't work
Pages: [1]

Author Topic: Disable Campaign button doesn't work  (Read 553 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Disable Campaign button doesn't work
November 23, 2014, 07:40:36 pm
This is reproducible on the Drupal demo for 4.5.

Clicking on the Disable button fails, when viewing a list of Campaigns on the Campaign dashboard.

The Javascript console contains messages like ...

Quote
TypeError: $row[0] is undefined
   ret.entity = $row.data('entity') || $row[0].id.split('-')[0];

The line reference is jquery.crmeditable.js?nfivnx and line 13.

This Javascript appears to expect that the <TR> in which this button sits has a CLASS of "crm-entity" and an ID like "campaign-123". On the Campaign Dashboard the only CLASS is "even" or "odd" and the ID is "campaign_row_3".

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Disable Campaign button doesn't work
November 23, 2014, 08:05:37 pm
Nice catch. Fixed.

https://issues.civicrm.org/jira/browse/CRM-15633
Try asking your question on the new CiviCRM help site.

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Disable Campaign button doesn't work
November 23, 2014, 08:42:58 pm
The Disable buttons on the Survey and Petition dashboards have the same issue.

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Disable Campaign button doesn't work
November 23, 2014, 09:23:27 pm
@coleman,

I really appreciate your quick response on this one. Thanks!

Ken

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Disable Campaign button doesn't work
November 24, 2014, 06:11:22 am
@ken, I already saw and fixed those other buttons as part of the above :)
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCampaign (Moderators: Kiran Jagtap, xavier) »
  • Disable Campaign button doesn't work

This forum was archived on 2017-11-26.