From c76d414187f510a871983eaef7cc6a709d060069 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 6 Oct 2023 12:40:45 +0200 Subject: [PATCH] wip #6336 --- app/Elearning/QuizCompiler.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { -- 2.39.5