mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
BUGFIX: changed .change() to .click() on the custom rules handler to fix issue with changing checkboxs in IE8
This commit is contained in:
parent
8977e65471
commit
61edb74f36
@ -276,6 +276,7 @@ class UserDefinedForm_Controller extends Page_Controller {
|
|||||||
// is this field a special option field
|
// is this field a special option field
|
||||||
$checkboxField = false;
|
$checkboxField = false;
|
||||||
if(in_array($formFieldWatch->ClassName, array('EditableCheckboxGroupField', 'EditableCheckbox'))) {
|
if(in_array($formFieldWatch->ClassName, array('EditableCheckboxGroupField', 'EditableCheckbox'))) {
|
||||||
|
$action = "click";
|
||||||
$checkboxField = true;
|
$checkboxField = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -512,7 +513,7 @@ JS
|
|||||||
$body = strip_tags($recipient->EmailBody) . "\n ";
|
$body = strip_tags($recipient->EmailBody) . "\n ";
|
||||||
if(isset($emailData['Fields'])) {
|
if(isset($emailData['Fields'])) {
|
||||||
foreach($emailData['Fields'] as $Field) {
|
foreach($emailData['Fields'] as $Field) {
|
||||||
$body .= $Field->Title .' - '. $Field->Value .'\n';
|
$body .= $Field->Title .' - '. $Field->Value .' \n';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$email->setBody($body);
|
$email->setBody($body);
|
||||||
|
Loading…
Reference in New Issue
Block a user