diff options
| author | wei <> | 2007-03-30 07:11:11 +0000 | 
|---|---|---|
| committer | wei <> | 2007-03-30 07:11:11 +0000 | 
| commit | 96c0b5c35463387664db3fa69898d54a929eaa2a (patch) | |
| tree | 19e2ee4be1ff30a651d4fed63c6b04a36778a5a6 /framework/Web/UI/ActiveControls/TCallbackClientScript.php | |
| parent | 62958aa45b4ccf5369b41b7e635582b1be0d1edc (diff) | |
Fixed #538
Diffstat (limited to 'framework/Web/UI/ActiveControls/TCallbackClientScript.php')
| -rw-r--r-- | framework/Web/UI/ActiveControls/TCallbackClientScript.php | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/framework/Web/UI/ActiveControls/TCallbackClientScript.php b/framework/Web/UI/ActiveControls/TCallbackClientScript.php index b10552e8..837b5b51 100644 --- a/framework/Web/UI/ActiveControls/TCallbackClientScript.php +++ b/framework/Web/UI/ActiveControls/TCallbackClientScript.php @@ -176,7 +176,12 @@ class TCallbackClientScript extends TApplicationComponent  	{
  		$options = array();
  		foreach($items as $item)
 -			$options[] = array($item->getText(),$item->getValue());
 +		{
 +			if($item->getHasAttributes())
 +				$options[] =  array($item->getText(),$item->getValue(), $item->getAttributes()->itemAt('Group'));
 +			else
 +				$options[] = array($item->getText(),$item->getValue());
 +		}
  		$this->callClientFunction('Prado.Element.setOptions', array($control, $options));
  	}
 | 
