mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
fix(episode-form): render episode number optional when episode type is trailer or bonus
This commit is contained in:
parent
f5189055ff
commit
694328f108
@ -164,7 +164,7 @@ class EpisodeController extends BaseController
|
||||
'chapters_file' => 'ext_in[chapters,json]|permit_empty',
|
||||
];
|
||||
|
||||
if ($this->podcast->type === 'serial') {
|
||||
if ($this->podcast->type === 'serial' && $this->request->getPost('type') === 'full') {
|
||||
$rules['episode_number'] = 'required';
|
||||
}
|
||||
|
||||
@ -301,7 +301,7 @@ class EpisodeController extends BaseController
|
||||
'chapters_file' => 'ext_in[chapters_file,json]|permit_empty',
|
||||
];
|
||||
|
||||
if ($this->podcast->type === 'serial') {
|
||||
if ($this->podcast->type === 'serial' && $this->request->getPost('type') === 'full') {
|
||||
$rules['episode_number'] = 'required';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user