From: Vincent Vanwaelscappel Date: Fri, 6 Oct 2023 10:40:45 +0000 (+0200) Subject: wip #6336 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c76d414187f510a871983eaef7cc6a709d060069;p=fluidbook-toolbox.git wip #6336 --- diff --git a/app/Elearning/QuizCompiler.php b/app/Elearning/QuizCompiler.php index a539fc8a7..2dbbefab6 100644 --- a/app/Elearning/QuizCompiler.php +++ b/app/Elearning/QuizCompiler.php @@ -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) {