|
@@ -1317,7 +1317,7 @@ class Member extends Component
|
|
|
public function addCourse()
|
|
public function addCourse()
|
|
|
{
|
|
{
|
|
|
$this->resetCourseFields();
|
|
$this->resetCourseFields();
|
|
|
- if ($this->under18)
|
|
|
|
|
|
|
+ /*if ($this->under18)
|
|
|
{
|
|
{
|
|
|
$this->course_months[] = array("m" => 9, "status" => "");
|
|
$this->course_months[] = array("m" => 9, "status" => "");
|
|
|
$this->course_months[] = array("m" => 10, "status" => "");
|
|
$this->course_months[] = array("m" => 10, "status" => "");
|
|
@@ -1329,7 +1329,7 @@ class Member extends Component
|
|
|
$this->course_months[] = array("m" => 4, "status" => "");
|
|
$this->course_months[] = array("m" => 4, "status" => "");
|
|
|
$this->course_months[] = array("m" => 5, "status" => "");
|
|
$this->course_months[] = array("m" => 5, "status" => "");
|
|
|
$this->course_months[] = array("m" => 6, "status" => "");
|
|
$this->course_months[] = array("m" => 6, "status" => "");
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
$this->addCourse = true;
|
|
$this->addCourse = true;
|
|
|
$this->updateCourse = false;
|
|
$this->updateCourse = false;
|
|
|
$this->emit('setEditCorso', true);
|
|
$this->emit('setEditCorso', true);
|
|
@@ -1415,6 +1415,7 @@ class Member extends Component
|
|
|
}
|
|
}
|
|
|
$this->course_frequencies = \App\Models\CourseFrequency::select('*')->where('enabled', true)->whereIn('id', $frequencies_ids)->get();
|
|
$this->course_frequencies = \App\Models\CourseFrequency::select('*')->where('enabled', true)->whereIn('id', $frequencies_ids)->get();
|
|
|
|
|
|
|
|
|
|
+ $this->course_when = array();
|
|
|
$this->course_date_from = $memberCourse->date_from;
|
|
$this->course_date_from = $memberCourse->date_from;
|
|
|
$this->course_date_to = $memberCourse->date_to;
|
|
$this->course_date_to = $memberCourse->date_to;
|
|
|
foreach(json_decode($memberCourse->when) as $z)
|
|
foreach(json_decode($memberCourse->when) as $z)
|