Skip to content

Commit d86df5c

Browse files
committed
fix(descriptionfield): picture rendering in user form
1 parent f153113 commit d86df5c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

inc/field/descriptionfield.class.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
use PluginFormcreatorAbstractField;
3636
use Session;
37+
use Toolbox;
3738
use GlpiPlugin\Formcreator\Exception\ComparisonException;
3839

3940
class DescriptionField extends PluginFormcreatorAbstractField
@@ -56,7 +57,8 @@ public function getDesignSpecializationField(): array {
5657
}
5758

5859
public function getRenderedHtml($domain, $canEdit = true): string {
59-
return nl2br(html_entity_decode(__($this->question->fields['description'], $domain)));
60+
$value = Toolbox::convertTagToImage(__($this->question->fields['description'], $domain), $this->getQuestion());
61+
return nl2br(html_entity_decode($value));
6062
}
6163

6264
public function serializeValue(): string {

0 commit comments

Comments
 (0)