]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6553 @0:05
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 4 Dec 2023 16:54:47 +0000 (17:54 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 4 Dec 2023 16:54:47 +0000 (17:54 +0100)
app/Models/FluidbookCollection.php

index 459e37a843b978a581ea33009ff993aee04403b9..5f8fa043e6f792012ffbe9b099c99d42baef0747 100644 (file)
@@ -67,7 +67,7 @@ class FluidbookCollection extends ToolboxStatusModel
         $this->addField('hash', Hidden::class);
         $this->addField('type', SelectFromArray::class, __('Type'), ['can' => 'fluidbook-collection:write', 'column' => true, 'options' => ['export' => __('Export'), 'export_multilang' => __('Export multilingue'), 'scorm_multilang' => __('SCORM multilingue')]]);
         $this->addField('locale_switch', Checkbox::class, __('Permettre le changement de langue'), ['when' => ['type' => ['scorm_multilang', 'export_multilang']], 'default' => true]);
-        $this->addField('locale_switch_currentpage', Checkbox::class, __('Rediriger vers la page en cours lors du changement de langue'), ['default' => false]);
+        $this->addField('locale_switch_currentpage', Checkbox::class, __('Rediriger vers la page en cours lors du changement de langue'), ['default' => false, 'when' => ['type' => ['scorm_multilang', 'export_multilang'], 'locale_switch' => 1]]);
         $this->addField('redirection_algorithm', SelectFromArray::class, __('Algorithme de choix de la version'),
             [
                 'when' => ['type' => ['scorm_multilang', 'export_multilang']],