]> _ Git - odl.git/commitdiff
wip #5038
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 18 Jan 2022 15:55:26 +0000 (16:55 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 18 Jan 2022 15:55:26 +0000 (16:55 +0100)
app/Models/Asset.php

index 10303d340aa3460732410689e2d6a8c1f96ee9d7..729b9337d6cd9f89f3ee6855c831104e3fc9c335 100644 (file)
@@ -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' => false, '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' => true, '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]);
     }