Skip to content

Commit

Permalink
fix(textarea): rendering without rich text mode
Browse files Browse the repository at this point in the history
Signed-off-by: btry <tbugier@teclib.com>
  • Loading branch information
btry committed Nov 2, 2018
1 parent a86f6da commit 90fcf8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/form_answer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ public function getFullForm($disableRichText = false) {

$question_no = 0;
$output = '';
$eol = '\r\n';
$eol = "\r\n";

if ($disableRichText === false
&& (version_compare(PluginFormcreatorCommon::getGlpiVersion(), 9.4) >= 0 || $CFG_GLPI['use_rich_text']))
Expand Down
2 changes: 1 addition & 1 deletion inc/targetchange.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ public function save(PluginFormcreatorForm_Answer $formanswer) {
$data[$changeField] = $this->fields[$changeField];
$data[$changeField] = str_replace("\r\n", '\r\n', $data[$changeField]);
if (strpos($data[$changeField], '##FULLFORM##') !== false) {
$data[$changeField] = str_replace('##FULLFORM##', $formanswer->getFullForm(), $data[$changeField]);
$data[$changeField] = str_replace('##FULLFORM##', $formanswer->getFullForm(true), $data[$changeField]);
}
if (version_compare(PluginFormcreatorCommon::getGlpiVersion(), 9.4) >= 0 || $CFG_GLPI['use_rich_text']) {
// replace HTML P tags with DIV tags
Expand Down

0 comments on commit 90fcf8c

Please sign in to comment.