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 CiviMember (Moderator: Deepak Srivastava) »
  • Batch Update Members via Profile erases Membership expiration date
Pages: [1]

Author Topic: Batch Update Members via Profile erases Membership expiration date  (Read 2125 times)

rjlang

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 1
  • CiviCRM version: 4.2.8
  • CMS version: Drupal 6
  • MySQL version: 5.0.77
  • PHP version: 5.3.19
Batch Update Members via Profile erases Membership expiration date
April 27, 2011, 03:29:44 pm
Hi,

We just upgraded a CiviCRM 2.2.7 installation to 3.3 and discovered a mechanism that worked fine in 2.2.7 now corrupts membership data in 3.3.

We have a Membership custom data field that is set manually to flag records for printout; when they're all printed, we clear that flag by using "Batch Update Members via Profile," using a Membership Profile that contains just that one item.

After the update is run, every Membership record that was part of the update has its Membership Expiration Date cleared. (Start Date and Member Since remain unchanged.) It shows up blank. At some point (we haven't figured out exactly where), it eventually gets repopulated with the default value (one year from Membership Start Date), but that's often not the right value.

Is this a known bug? Is there a patch? It's pretty painful (scary, too, to see membership data silently corrupted.)

Robert

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: Batch Update Members via Profile erases Membership expiration date
April 27, 2011, 08:26:52 pm

can you do a similar setup on our demo machine (custom field etc) and see if you can reproduce the same behavior there

thanx

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

rjlang

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 1
  • CiviCRM version: 4.2.8
  • CMS version: Drupal 6
  • MySQL version: 5.0.77
  • PHP version: 5.3.19
Re: Batch Update Members via Profile erases Membership expiration date
April 28, 2011, 07:43:30 am
I've reproduced this on the demo site.

Here's the test membership record for "J User". You'll see that it has an end date and a new custom field called "Print Switch," whose value is currently set to "Renewal."
http://drupal.demo.civicrm.org/civicrm/contact/view/membership?action=view&reset=1&id=31&cid=112&context=home

Now, if you do a Membership search for that field and that value (Print Switch=Renewal), the search will turn up just that record.
http://drupal.demo.civicrm.org/civicrm/member/search?reset=1

Select the contact, do "Batch Update Members via Profile,", then choose profile "Print Switch Update." Set the value of Print switch to "Off" and click "Update Memberships."

Now, if you go back and look at the contact's membership, you'll see that the expiration date has vanished.
http://drupal.demo.civicrm.org/civicrm/contact/view/membership?action=view&reset=1&id=31&cid=112&context=home

We're using 3.3. A patch (or even a suggestion of where to investigate) would be greatly appreciated.

Robert
« Last Edit: April 28, 2011, 07:46:46 am by rjlang »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Batch Update Members via Profile erases Membership expiration date
April 29, 2011, 03:52:39 am
For tracking purpose: http://issues.civicrm.org/jira/browse/CRM-7986

You can get the patch from: https://fisheye2.atlassian.com/changelog/CiviCRM?cs=33971

Kurund
Found this reply helpful? Support CiviCRM

rjlang

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 1
  • CiviCRM version: 4.2.8
  • CMS version: Drupal 6
  • MySQL version: 5.0.77
  • PHP version: 5.3.19
Re: Batch Update Members via Profile erases Membership expiration date
April 30, 2011, 11:11:27 am
That fixes it, thanks!

Robert

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Batch Update Members via Profile erases Membership expiration date

This forum was archived on 2017-11-26.