summaryrefslogtreecommitdiff
path: root/framework/Web/UI/JuiControls
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2016-08-09 10:12:50 +0200
committerFabio Bas <ctrlaltca@gmail.com>2016-08-09 10:12:50 +0200
commitce39e1585ce822e4af7180e1f65c290f487eae56 (patch)
tree3207a66f0189222976585773502c5ee678d559a2 /framework/Web/UI/JuiControls
parent5eb10dd635c6ea882ba7363f0bec1257ad1caf0c (diff)
Fix #607
Diffstat (limited to 'framework/Web/UI/JuiControls')
-rw-r--r--framework/Web/UI/JuiControls/TJuiDialog.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/Web/UI/JuiControls/TJuiDialog.php b/framework/Web/UI/JuiControls/TJuiDialog.php
index 996075e2..3c5e3519 100644
--- a/framework/Web/UI/JuiControls/TJuiDialog.php
+++ b/framework/Web/UI/JuiControls/TJuiDialog.php
@@ -100,6 +100,9 @@ class TJuiDialog extends TActivePanel implements IJuiOptions, ICallbackEventHand
protected function getPostBackOptions()
{
$options = $this->getOptions()->toArray();
+ // always make the dialog a child of the form, or its inner inputs won't be collected
+ if(!isset($options['appendTo']))
+ $options['appendTo'] = 'form:first';
foreach($this->getControls() as $control)
if($control instanceof TJuiDialogButton)