summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TLiteralColumn.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-03-26 19:28:20 +0100
committerFabio Bas <ctrlaltca@gmail.com>2014-03-26 19:28:20 +0100
commiteaaa9da0c4912f782c3a1043b710ac1b598a41a5 (patch)
tree88411c47d1610b3883b3c3b67d8fe7281c37f577 /framework/Web/UI/WebControls/TLiteralColumn.php
parent68bbb645ba5be61c2e3024ac3943c7346b30f1f2 (diff)
Fix #506
Diffstat (limited to 'framework/Web/UI/WebControls/TLiteralColumn.php')
-rw-r--r--framework/Web/UI/WebControls/TLiteralColumn.php17
1 files changed, 6 insertions, 11 deletions
diff --git a/framework/Web/UI/WebControls/TLiteralColumn.php b/framework/Web/UI/WebControls/TLiteralColumn.php
index 973ab801..4b2c39fc 100644
--- a/framework/Web/UI/WebControls/TLiteralColumn.php
+++ b/framework/Web/UI/WebControls/TLiteralColumn.php
@@ -109,18 +109,13 @@ class TLiteralColumn extends TDataGridColumn
if($itemType===TListItemType::Item || $itemType===TListItemType::AlternatingItem || $itemType===TListItemType::EditItem || $itemType===TListItemType::SelectedItem)
{
if($this->getDataField()!=='')
- $cell->attachEventHandler('OnDataBinding',array($this,'dataBindColumn'));
- else
{
- if(($dataField=$this->getDataField())!=='')
- $control->attachEventHandler('OnDataBinding',array($this,'dataBindColumn'));
- else
- {
- $text=$this->getText();
- if($this->getEncode())
- $text=THttpUtility::htmlEncode($text);
- $cell->setText($text);
- }
+ $cell->attachEventHandler('OnDataBinding',array($this,'dataBindColumn'));
+ } else {
+ $text=$this->getText();
+ if($this->getEncode())
+ $text=THttpUtility::htmlEncode($text);
+ $cell->setText($text);
}
}
else