Skip to content

Commit

Permalink
feat(descriptionfield): allow description field in targets
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>

##FULLFORM## still ignore descriptions, but admins may now explicitly add a description content
  • Loading branch information
btry committed Sep 15, 2020
1 parent 70d3f8e commit 5fedd96
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion inc/fields/descriptionfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ public function getValueForDesign() {
}

public function getValueForTargetText($richText) {
return '';
$text = $this->question->fields['description'];
if (!$richText) {
$text = nl2br(html_entity_decode($text));
}

return $text;
}

public function moveUploads() {}
Expand Down

0 comments on commit 5fedd96

Please sign in to comment.