mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-02 14:29:11 +02:00
fix(episode-form): render episode number optional when episode type is trailer or bonus
This commit is contained in:
parent
f5189055ff
commit
694328f108
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue