summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls
diff options
context:
space:
mode:
authorgodzilla80@gmx.net <>2009-03-20 06:51:50 +0000
committergodzilla80@gmx.net <>2009-03-20 06:51:50 +0000
commit88ca6ce4fae584a72470343d9e786c8ac736c62d (patch)
treed94f552dadf21e672814119bca01d88e725c66a4 /framework/Web/UI/ActiveControls
parentd634db87d432c87a092f1c4cee69a56914cbaa97 (diff)
Fixed Issue #120
Diffstat (limited to 'framework/Web/UI/ActiveControls')
-rw-r--r--framework/Web/UI/ActiveControls/TCallbackClientScript.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/framework/Web/UI/ActiveControls/TCallbackClientScript.php b/framework/Web/UI/ActiveControls/TCallbackClientScript.php
index 1b9f1ca6..062f63dc 100644
--- a/framework/Web/UI/ActiveControls/TCallbackClientScript.php
+++ b/framework/Web/UI/ActiveControls/TCallbackClientScript.php
@@ -177,6 +177,18 @@ class TCallbackClientScript extends TApplicationComponent
public function setListItems($control, $items)
{
$options = array();
+ if($control instanceof TListControl)
+ {
+ $promptText = $control->getPromptText();
+ $promptValue = $control->getPromptValue();
+
+ if($promptValue==='')
+ $promptValue = $promptText;
+
+ if($promptValue!=='')
+ $options[] = array($promptText, $promptValue);
+ }
+
foreach($items as $item)
{
if($item->getHasAttributes())