summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TRepeater.php
diff options
context:
space:
mode:
authorxue <>2007-09-17 12:56:51 +0000
committerxue <>2007-09-17 12:56:51 +0000
commit96f2c4205554f69ffd2d872bcd0dcd87b3a6e571 (patch)
tree21c8ca7ddceaea31f5de1b546d241c8d34781bbb /framework/Web/UI/WebControls/TRepeater.php
parent3f5229142af88f0cc44644cc756d908138e5a790 (diff)
fixed renderer bug.
Diffstat (limited to 'framework/Web/UI/WebControls/TRepeater.php')
-rw-r--r--framework/Web/UI/WebControls/TRepeater.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TRepeater.php b/framework/Web/UI/WebControls/TRepeater.php
index c94d559a..c35f38a8 100644
--- a/framework/Web/UI/WebControls/TRepeater.php
+++ b/framework/Web/UI/WebControls/TRepeater.php
@@ -523,9 +523,11 @@ class TRepeater extends TDataBoundControl implements INamingContainer
$template=$this->_itemTemplate;
break;
case TListItemType::AlternatingItem :
- if(($classPath=$this->getAlternatingItemRenderer())==='')
+ if(($classPath=$this->getAlternatingItemRenderer())==='' && ($template=$this->_alternatingItemTemplate)===null)
+ {
$classPath=$this->getItemRenderer();
- $template=$this->_alternatingItemTemplate===null ? $this->_itemTemplate : $this->_alternatingItemTemplate;
+ $template=$this->_itemTemplate;
+ }
break;
case TListItemType::Header :
$classPath=$this->getHeaderRenderer();