fix: scheduled_at after:now only for 'scheduled' status, not 'publishing' (publish now)
This commit is contained in:
parent
0bca140cd9
commit
09533b0f84
5 changed files with 5 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ public function rules(): array
|
|||
'nullable',
|
||||
'date',
|
||||
Rule::when(
|
||||
in_array($this->input('status'), ['scheduled', 'publishing']),
|
||||
$this->input('status') === 'scheduled',
|
||||
['after:now']
|
||||
),
|
||||
],
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public function rules(): array
|
|||
'nullable',
|
||||
'date',
|
||||
Rule::when(
|
||||
in_array($this->input('status'), ['scheduled', 'publishing']),
|
||||
$this->input('status') === 'scheduled',
|
||||
['after:now']
|
||||
),
|
||||
],
|
||||
|
|
|
|||
1
lang/php_en.json
Normal file
1
lang/php_en.json
Normal file
File diff suppressed because one or more lines are too long
1
lang/php_es.json
Normal file
1
lang/php_es.json
Normal file
File diff suppressed because one or more lines are too long
1
lang/php_pt-BR.json
Normal file
1
lang/php_pt-BR.json
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue