mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
remove rule
This commit is contained in:
@@ -53,7 +53,7 @@ class LibraryItemForm extends Component
|
|||||||
'libraryItem.type' => 'required',
|
'libraryItem.type' => 'required',
|
||||||
'libraryItem.language_code' => 'required',
|
'libraryItem.language_code' => 'required',
|
||||||
'libraryItem.value' => [
|
'libraryItem.value' => [
|
||||||
'required',
|
Rule::when($this->libraryItem->type !== LibraryItemType::DownloadableFile(), 'required'),
|
||||||
Rule::when(
|
Rule::when(
|
||||||
$this->libraryItem->type !== LibraryItemType::MarkdownArticle()
|
$this->libraryItem->type !== LibraryItemType::MarkdownArticle()
|
||||||
&& $this->libraryItem->type !== LibraryItemType::MarkdownArticleExtern(), ['url']
|
&& $this->libraryItem->type !== LibraryItemType::MarkdownArticleExtern(), ['url']
|
||||||
|
|||||||
Reference in New Issue
Block a user