Skip to content

Commit

Permalink
Merge pull request #13227 from eileenmcnaughton/membership_type
Browse files Browse the repository at this point in the history
Fix period_type, duration_unit, duration_frequency to be required on membership type form
  • Loading branch information
seamuslee001 authored Dec 5, 2018
2 parents b896a07 + d3d3b68 commit ae586ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Member/Form/MembershipType.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,18 @@ protected function setEntityFields() {
],
'duration_interval' => [
'name' => 'duration_interval',
'required' => TRUE,
],
'duration_unit' => [
'name' => 'duration_unit',
'description' => ts('Duration of this membership (e.g. 30 days, 2 months, 5 years, 1 lifetime)'),
'required' => TRUE,
],
'period_type' => [
'name' => 'period_type',
'description' => ts("Select 'rolling' if membership periods begin at date of signup. Select 'fixed' if membership periods begin on a set calendar date."),
'help' => ['id' => 'period-type', 'file' => "CRM/Member/Page/MembershipType.hlp"],
'required' => TRUE,
],
'fixed_period_start_day' => [
'name' => 'fixed_period_start_day',
Expand Down

0 comments on commit ae586ee

Please sign in to comment.