From: Vincent Vanwaelscappel Date: Tue, 18 Jan 2022 15:47:08 +0000 (+0100) Subject: wip #5038 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e97bd5a5f5ff7b77ce03b21b4078879ad3ec2345;p=odl.git wip #5038 @0.25 --- diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 729b933..10303d3 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -51,7 +51,7 @@ class Asset extends CubistMagicAbstractModel ]); $this->addField('file_upload', Files::class, 'Fichier', ['maxFiles' => 100]); $this->addField('file_thumb', Files::class, 'Miniature', ['when' => ['type' => ['audio', 'video', 'pdf']], 'hint' => 'Image utilisée sur la page "Médiathèque" ou "Resources"']); - $this->addField('theme', SelectFromModel::class, 'Chapitres', ['when' => ['type' => ['audio', 'video']], 'optionsmodel' => AssetTheme::class, 'allows_null' => true, 'allows_multiple' => true, 'hint' => 'Choisir un thème pour ajouter à la page "Médiathèque"']); + $this->addField('theme', SelectFromModel::class, 'Chapitres', ['when' => ['type' => ['audio', 'video']], 'optionsmodel' => AssetTheme::class, 'allows_null' => false, 'allows_multiple' => true, 'hint' => 'Choisir un thème pour ajouter à la page "Médiathèque"']); $this->addField('code', Integer::class, 'Code', ['when' => ['type' => ['audio', 'video']], 'column' => true]); $this->addField('keywords', Tags::class, 'Mots-clé', ['column' => true]); }