mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-29 16:09:23 +02:00
Fixed long line.
This commit is contained in:
parent
ef81318aea
commit
4e1b6af10f
|
@ -100,7 +100,8 @@ class ManyManyList extends RelationList {
|
|||
}
|
||||
|
||||
if($extraFields) foreach($extraFields as $k => $v) {
|
||||
$manipulation[$this->joinTable]['fields'][$k] = (is_null($v)) ? 'NULL' : "'" . Convert::raw2sql($v) . "'";
|
||||
if(is_null($v)) $manipulation[$this->joinTable]['fields'][$k] = 'NULL';
|
||||
else $manipulation[$this->joinTable]['fields'][$k] = "'" . Convert::raw2sql($v) . "'";
|
||||
}
|
||||
|
||||
$manipulation[$this->joinTable]['fields'][$this->localKey] = $itemID;
|
||||
|
|
Loading…
Reference in New Issue
Block a user