remove rule

This commit is contained in:
HolgerHatGarKeineNode
2023-10-04 21:19:55 +02:00
parent ca322e55b3
commit 69d26adf69

View File

@@ -56,8 +56,7 @@ class LibraryItemForm extends Component
'required', 'required',
Rule::when( Rule::when(
$this->libraryItem->type !== LibraryItemType::MarkdownArticle() $this->libraryItem->type !== LibraryItemType::MarkdownArticle()
&& $this->libraryItem->type !== LibraryItemType::MarkdownArticleExtern() && $this->libraryItem->type !== LibraryItemType::MarkdownArticleExtern(), ['url']
&& $this->libraryItem->type !== LibraryItemType::DownloadableFile(), ['url']
), ),
], ],
'libraryItem.subtitle' => 'libraryItem.subtitle' =>