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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Pledge is missing "Next Amount" when created via API
Pages: [1]

Author Topic: Pledge is missing "Next Amount" when created via API  (Read 763 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Pledge is missing "Next Amount" when created via API
February 10, 2012, 12:29:23 am
When reviewing an overdue pledge that was created via API at: http://mygroup.org/civicrm/contact/view?reset=1&force=1&cid=4040&selectedChild=pledge , the "Next Amount" field is empty. Any ideas on how I can force this to be filled in for both existing pledges and new pledges? 



Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Pledge is missing "Next Amount" when created via API
February 10, 2012, 12:51:20 am
Hi,

Check out civicrm_api3_pledge_create and the BAO it calls.

Would be good you write a test in tests/phpunit/api/v3/PledgeTest.php that shows the problem so we can be sure it stays fixed.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Pledge is missing "Next Amount" when created via API

This forum was archived on 2017-11-26.