]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6336
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 6 Oct 2023 10:40:45 +0000 (12:40 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 6 Oct 2023 10:40:45 +0000 (12:40 +0200)
app/Elearning/QuizCompiler.php

index a539fc8a7b84d1920f8bb4a2fbe53e011d6d1816..2dbbefab66d7f4d043874ff0b877f0717d2e7c2d 100644 (file)
@@ -172,7 +172,10 @@ class QuizCompiler extends Base
         $this->data->set($dataKey, '');
         $this->data->set($dataKey . 'Mobile', '');
 
-        $dataKeyCustom = trim($dataKey, '12') . 'Custom';
+        $dataKeyCustom = $dataKey . 'Custom';
+        if (str_starts_with($dataKey, 'draganddrop')) {
+            $dataKeyCustom = 'draganddropCustom';
+        }
         $custom = $this->theme->$dataKeyCustom;
 
         if ($custom) {