Skip to content

Commit 915bf05

Browse files
committed
fix(issue): enable qtip for formanswer
was disabled because if inability to replace tags Signed-off-by: Thierry Bugier <[email protected]>
1 parent 3bcce57 commit 915bf05

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

inc/issue.class.php

+6-7
Original file line numberDiff line numberDiff line change
@@ -680,13 +680,12 @@ public static function giveItem($itemtype, $option_id, $data, $num) {
680680
$content = $ticket->fields['content'];
681681
break;
682682

683-
// TODO : need some code refactor to properly provide qtip
684-
// case PluginFormcreatorFormAnswer::class:
685-
// $formAnswer = new PluginFormcreatorFormAnswer();
686-
// $formAnswer->getFromDB($id);
687-
// $content = $formAnswer->getFullForm();
688-
// // TODO : need to replace tags before creating the qtip
689-
// break;
683+
case PluginFormcreatorFormAnswer::class:
684+
$formAnswer = new PluginFormcreatorFormAnswer();
685+
$formAnswer->getFromDB($id);
686+
$content = $formAnswer->parseTags($formAnswer->getFullForm());
687+
break;
688+
690689
default:
691690
$content = '';
692691
}

0 commit comments

Comments
 (0)