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) »
  • Civimember Status end dates
Pages: [1]

Author Topic: Civimember Status end dates  (Read 2745 times)

dalin

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 8
  • CiviCRM version: many
  • CMS version: Drupal 6
  • MySQL version: 5.0
  • PHP version: 5.2
Civimember Status end dates
May 09, 2007, 02:06:35 pm
Somewhere along the way it appears that when creating a membership status the end date is now required.  This means that you can no longer create an "expired" membership status.

Is this just a bug or was there some coherent planning behind the change?
--
Dave Hansen-Lange
Web Developer
Advomatic LLC
http://advomatic.com
Hong Kong office

syoumans

  • Guest
Re: Civimember Status end dates
May 10, 2007, 06:05:36 am
I'm running 1.7.9379 and seem to get the expected behavior (Add Membership, set the type and join date, and the end date is generated automatically). I know that when using the API, I must provide all the dates in question.

Can you be more specific about what version you're using and what steps you are taking?
Thanks!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Civimember Status end dates
May 10, 2007, 07:08:58 am
Quote from: dalin on May 09, 2007, 02:06:35 pm
Somewhere along the way it appears that when creating a membership status the end date is now required.  This means that you can no longer create an "expired" membership status.

Is this just a bug or was there some coherent planning behind the change?

Dave - I think this is a bug (given that the default Status Rule for Expired doesn't "save" on update w/o the error). I'll post an issue and look at how/why this behavior was changed.
Protect your investment in CiviCRM by  becoming a Member!

dalin

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 8
  • CiviCRM version: many
  • CMS version: Drupal 6
  • MySQL version: 5.0
  • PHP version: 5.2
Re: Civimember Status end dates
May 10, 2007, 08:50:50 am
syoumans: I'm talking about the status rules, not the entering of a membership for a contact.

Dave Greenberg: thanks.  Until it gets fixed I can just manually create the entry in the table. 
--
Dave Hansen-Lange
Web Developer
Advomatic LLC
http://advomatic.com
Hong Kong office

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Civimember Status end dates
May 10, 2007, 11:53:27 am
Dave - this is fixed for 1.8 : http://issues.civicrm.org/jira/browse/CRM-1895
The change is quite trivial if you want to apply to your install.
Code: [Select]
CRM/Member/MembershipStatus.php:
Was...
        $this->add('select', 'end_event', ts('End Event'), CRM_Core_SelectValues::eventDate( ), true );
Now...
        $this->add('select', 'end_event', ts('End Event'), CRM_Core_SelectValues::eventDate( ), false );
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Civimember Status end dates

This forum was archived on 2017-11-26.