From 915bf0587c38f348b3761e85beb0f039d8130940 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Wed, 21 Apr 2021 22:19:31 +0200 Subject: [PATCH] fix(issue): enable qtip for formanswer was disabled because if inability to replace tags Signed-off-by: Thierry Bugier --- inc/issue.class.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/inc/issue.class.php b/inc/issue.class.php index 05f793c51..32e47a932 100644 --- a/inc/issue.class.php +++ b/inc/issue.class.php @@ -680,13 +680,12 @@ public static function giveItem($itemtype, $option_id, $data, $num) { $content = $ticket->fields['content']; break; - // TODO : need some code refactor to properly provide qtip - // case PluginFormcreatorFormAnswer::class: - // $formAnswer = new PluginFormcreatorFormAnswer(); - // $formAnswer->getFromDB($id); - // $content = $formAnswer->getFullForm(); - // // TODO : need to replace tags before creating the qtip - // break; + case PluginFormcreatorFormAnswer::class: + $formAnswer = new PluginFormcreatorFormAnswer(); + $formAnswer->getFromDB($id); + $content = $formAnswer->parseTags($formAnswer->getFullForm()); + break; + default: $content = ''; }