Skip to content

Commit

Permalink
#517 - Add missing semicolor.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Aug 28, 2023
1 parent d3f9a00 commit 0701f70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/scripts/php/libs/Ui.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ public function textarea($name, $nameIndex = -1, $default = "", $params = array(
}

if ($model->isSubmit()) {
$this->setModelValueFromRequest($model, $name, $name, $nameIndex, ['&#126' => '~']);
$this->setModelValueFromRequest($model, $name, $name, $nameIndex, ['~' => '~']);
}

if ($model->isRender()) {
Expand All @@ -666,7 +666,7 @@ public function textarea($name, $nameIndex = -1, $default = "", $params = array(

$params = $this->appendId($params);
$attributes = $this->joinAttributes($params);
$modelValue = str_replace('~', '&#126', $modelValue);
$modelValue = str_replace('~', '~', $modelValue);
return "<textarea name='$formName'$attributes>$modelValue</textarea>";
}
}
Expand Down

0 comments on commit 0701f70

Please sign in to comment.