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

Monthly repetitions not respected on Action Schedule

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.3
    • Fix Version/s: 4.4.4
    • Component/s: None
    • Labels:
      None

      Description

      I found someone who should have got monthly reminders was getting them every reminder run. Looking at the code it seems there is no handling for monthly reminders & it is treated as hourly

      // if repeat is turned ON:
      if ($actionSchedule->is_repeat) {
      $repeatEvent = ($actionSchedule->end_action == 'before' ? 'DATE_SUB' : 'DATE_ADD') . "({$dateField}, INTERVAL {$actionSchedule->end_frequency_interval} {$actionSchedule->end_frequency_unit})";

      if ($actionSchedule->repetition_frequency_unit == 'day')

      { $hrs = 24 * $actionSchedule->repetition_frequency_interval; }

      elseif ($actionSchedule->repetition_frequency_unit == 'week')

      { $hrs = 24 * $actionSchedule->repetition_frequency_interval * 7; }

      else

      { $hrs = $actionSchedule->repetition_frequency_interval; }

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: