summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--framework/Web/UI/WebControls/THtmlArea.php6
2 files changed, 6 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index 6f9bf3bc..a7d4e011 100644
--- a/HISTORY
+++ b/HISTORY
@@ -4,6 +4,7 @@ BUG: Issue#87 - TinyMCE : empty string disapears after encoding JS, that's a pro
BUG: Issue#96 - THttpResponse::redirect don't send status code (Christophe)
BUG: Issue#99 - TActiveRecord::save(): confusion with order of keys in table/index (Christophe)
BUG: Issue#107 - typo in TDbConnection::getCharset() (Christophe)
+BUG: Issue#126 - THtmlArea: boolean options output as strings (Christophe)
BUG: Issue#127 - TDataSourceConfig::findConnectionByID try to access private var (Cristophe)
BUG: Issue#129 - TDbLogRoute::init don't close the sql command (Christophe)
Bug: Issue#130 - TDbLogRoute::processLogs wrong values binding (Christophe)
diff --git a/framework/Web/UI/WebControls/THtmlArea.php b/framework/Web/UI/WebControls/THtmlArea.php
index 5d65c8b2..7e8bc370 100644
--- a/framework/Web/UI/WebControls/THtmlArea.php
+++ b/framework/Web/UI/WebControls/THtmlArea.php
@@ -436,7 +436,11 @@ class THtmlArea extends TTextBox
$option = explode(":",$bits,2);
if(count($option) == 2)
- $options[trim($option[0])] = trim(preg_replace('/\'|"/','', $option[1]));
+ {
+ $value=trim(preg_replace('/\'|"/','', $option[1]));
+ if (($s=strtolower($value))==='false' || $s==='true') $value=(boolean)$s;
+ $options[trim($option[0])] = $value;
+ }
}
return $options;
}