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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • CiviContribute Suggestions »
  • Failure to update custom group attached to contribution_type
Pages: [1]

Author Topic: Failure to update custom group attached to contribution_type  (Read 2375 times)

khapeman

  • Guest
Failure to update custom group attached to contribution_type
December 14, 2009, 08:45:28 am
We created a new custom group of fields and attached (i.e. the "Used for" selection box) that to the contribution page AND to the contribution_type of "Donation".  When entering a new donation, the custom group appeared as soon as the contribution type of "Donation" was selected.  However, for a new contribution all data entered in those custom fields was not saved.  If an existing contribution was edited, however, the data in the custom fields was saved.  To get around this, we had to recreate the custom group and attach it to the contribution page but NOT to a contribution type (leave that select as "Any").  The custom group then appears as soon as the new contribution page is called and the data is saved along with the new contribution.  I believe this is a bug.

It would be very helpful to be able to change the "Used for" for an existing group of custom fields rather than having to delete and recreate them.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Failure to update custom group attached to contribution_type
December 14, 2009, 01:28:23 pm

hey khapeman:

can you please try to reproduce the issue you mentioned in the first paragraph on the sandbox server: http://sandbox.civicrm.org/. If you can, can you please file an issue and we'll fix it for the next beta release

Quote from: khapeman on December 14, 2009, 08:45:28 am
It would be very helpful to be able to change the "Used for" for an existing group of custom fields rather than having to delete and recreate them.

This involves a fair amount of code (to ensure that what you are doing is valid and there will be no missing data etc). Would be great if you/your org can contribute code to make this happen

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

khapeman

  • Guest
Re: Failure to update custom group attached to contribution_type
December 15, 2009, 06:33:10 am
I just tried it on the 3.1 sandbox - added a custom group and field attached to contributions and only "Donation" as a type.  It worked fine.  The only difference other than the release (we're on 3.0) is that we have only one Contribution Type (Donation), so I changed the sandbox to exactly match our situation and again it worked perfectly.  I changed the sandbox back to the way I found it and deleted the test contribution that I had made.  Looks like this is no longer a problem!
Thanks for your help!

excell@drupal.org

  • Guest
Re: Failure to update custom group attached to contribution_type
January 23, 2010, 05:25:12 pm
Just making a note that I am having this exact same problem on 3.0.2. Looks like it is a bug - getting around it by "editing" the custom data field after recording new contribution and will look forward to upgrading to 3.1. Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • CiviContribute Suggestions »
  • Failure to update custom group attached to contribution_type

This forum was archived on 2017-11-26.