Skip to content

Commit

Permalink
CRM-19853 set minimum value to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
konadave committed Jan 11, 2017
1 parent 8d45459 commit dc5689e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CRM/Admin/Form/ScheduleReminders.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function buildQuickForm() {
$this->_freqUnits = CRM_Core_SelectValues::getRecurringFrequencyUnits();

//reminder_interval
$this->add('number', 'start_action_offset', ts('When'), array('class' => 'six', 'min' => 1));
$this->add('number', 'start_action_offset', ts('When'), array('class' => 'six', 'min' => 0));
$this->addRule('start_action_offset', ts('Value should be a positive number'), 'positiveInteger');

$isActive = ts('Send email');
Expand Down Expand Up @@ -208,11 +208,11 @@ public function buildQuickForm() {
);

$this->add('select', 'repetition_frequency_unit', ts('every'), $freqUnitsDisplay);
$this->add('number', 'repetition_frequency_interval', ts('every'), array('class' => 'six', 'min' => 1));
$this->add('number', 'repetition_frequency_interval', ts('every'), array('class' => 'six', 'min' => 0));
$this->addRule('repetition_frequency_interval', ts('Value should be a positive number'), 'positiveInteger');

$this->add('select', 'end_frequency_unit', ts('until'), $freqUnitsDisplay);
$this->add('number', 'end_frequency_interval', ts('until'), array('class' => 'six', 'min' => 1));
$this->add('number', 'end_frequency_interval', ts('until'), array('class' => 'six', 'min' => 0));
$this->addRule('end_frequency_interval', ts('Value should be a positive number'), 'positiveInteger');

$this->add('select', 'end_action', ts('Repetition Condition'), $condition, TRUE);
Expand Down

0 comments on commit dc5689e

Please sign in to comment.