mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
MINOR: some dbms make a difference between 0 and NULL
This commit is contained in:
parent
3c1d81d014
commit
8a80dfa592
@ -821,8 +821,8 @@ class UserDefinedForm_EmailRecipient extends DataObject {
|
||||
);
|
||||
|
||||
if($this->Form()) {
|
||||
$validEmailFields = DataObject::get("EditableEmailField", "\"ParentID\" = '$this->FormID'");
|
||||
$multiOptionFields = DataObject::get("EditableMultipleOptionField", "\"ParentID\" = '$this->FormID'");
|
||||
$validEmailFields = DataObject::get("EditableEmailField", "\"ParentID\" = '" . (int)$this->FormID . "'");
|
||||
$multiOptionFields = DataObject::get("EditableMultipleOptionField", "\"ParentID\" = '" . (int)$this->FormID . "'");
|
||||
|
||||
// if they have email fields then we could send from it
|
||||
if($validEmailFields) {
|
||||
|
Loading…
Reference in New Issue
Block a user