fix: enable reset of active_from, active_until for playlists

This commit is contained in:
Benjamin Nussbaum 2025-07-10 12:45:10 +02:00
parent 56a29e8aed
commit f767d39c8f
2 changed files with 12 additions and 0 deletions

View file

@ -196,6 +196,12 @@ new class extends Component {
'refresh_time' => 'nullable|integer|min:60', 'refresh_time' => 'nullable|integer|min:60',
]); ]);
if (empty($this->active_from)) {
$this->active_from = null;
}
if (empty($this->active_until)) {
$this->active_until = null;
}
if ($this->refresh_time < 60) { if ($this->refresh_time < 60) {
$this->refresh_time = null; $this->refresh_time = null;
} }

View file

@ -96,6 +96,12 @@ new class extends Component {
'refresh_time' => 'nullable|integer|min:60', 'refresh_time' => 'nullable|integer|min:60',
]); ]);
if (empty($this->active_from)) {
$this->active_from = null;
}
if (empty($this->active_until)) {
$this->active_until = null;
}
if ($this->refresh_time < 60) { if ($this->refresh_time < 60) {
$this->refresh_time = null; $this->refresh_time = null;
} }