From dc8c931a86fe24a91e72cd4026d6ca17091a63fd Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Tue, 28 Mar 2023 12:01:34 +0200 Subject: [PATCH] fix(item_targetticket): export of question based composition --- inc/item_targetticket.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inc/item_targetticket.class.php b/inc/item_targetticket.class.php index fa29f4ac6..afe5cff4b 100644 --- a/inc/item_targetticket.class.php +++ b/inc/item_targetticket.class.php @@ -180,6 +180,11 @@ protected function convertIds(&$parameter) { $targetTicket->getFromDB($parameter['items_id']); $parameter['items_id'] = $targetTicket->fields['uuid']; } + if ($parameter['itemtype'] == PluginFormcreatorQuestion::getType()) { + $question = new PluginFormcreatorQuestion(); + $question->getFromDB($parameter['items_id']); + $parameter['items_id'] = $question->fields['uuid']; + } } protected function convertUuids(&$parameter) {