mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
validate data
This commit is contained in:
@@ -53,6 +53,7 @@ class MeetupEventForm extends Component
|
|||||||
|
|
||||||
public function updatedMeetupEventStart($value)
|
public function updatedMeetupEventStart($value)
|
||||||
{
|
{
|
||||||
|
$this->validate();
|
||||||
if ($this->recurring) {
|
if ($this->recurring) {
|
||||||
$this->updatedRecurring(true);
|
$this->updatedRecurring(true);
|
||||||
}
|
}
|
||||||
@@ -60,6 +61,7 @@ class MeetupEventForm extends Component
|
|||||||
|
|
||||||
public function updatedRecurring($value)
|
public function updatedRecurring($value)
|
||||||
{
|
{
|
||||||
|
$this->validate();
|
||||||
if ($value && $this->meetupEvent->start) {
|
if ($value && $this->meetupEvent->start) {
|
||||||
$this->series = [];
|
$this->series = [];
|
||||||
for ($i = 0; $i < $this->repetitions; $i++) {
|
for ($i = 0; $i < $this->repetitions; $i++) {
|
||||||
@@ -73,6 +75,7 @@ class MeetupEventForm extends Component
|
|||||||
|
|
||||||
public function updatedRepetitions($value)
|
public function updatedRepetitions($value)
|
||||||
{
|
{
|
||||||
|
$this->validate();
|
||||||
if ($this->recurring) {
|
if ($this->recurring) {
|
||||||
$this->updatedRecurring(true);
|
$this->updatedRecurring(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user