Skip to content

Commit

Permalink
fix(issue): enable qtip for formanswer
Browse files Browse the repository at this point in the history
was disabled because if inability to replace tags

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Apr 21, 2021
1 parent 3bcce57 commit 915bf05
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions inc/issue.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
}
Expand Down

0 comments on commit 915bf05

Please sign in to comment.