Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4425

CiviMember refusing a valid date

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.2.3
    • Component/s: CiviMember
    • Labels:
      None

      Description

      Creating a membership type with w fixed valid period. The from and to dates are refused while they are valid and the error message is displayed.
      I think the problem is within Forms\MembershipTypes.php

      if( ( $params['period_type'] == 'fixed' ) &&
      ( $params['duration_unit'] == 'year' ) ) {
      $periods = array('fixed_period_start_day', 'fixed_period_rollover_day');
      foreach ( $periods as $period ) {
      $month = $params[$period]['M'];
      $date = $params[$period]['d'];

      $month = $params[$period]['M']; should be $month = $params[$period]['m']; (m not capitalized)

        Attachments

          Activity

            People

            • Assignee:
              neha.saraph Neha Kulkarni
              Reporter:
              clivesj Joop Sint Jago
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10 minutes
                10m
                Remaining:
                Remaining Estimate - 10 minutes
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified