mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix a code style typo
This commit is contained in:
parent
4b4fbabed5
commit
15aaf9db9f
@ -265,7 +265,7 @@ class TreeMultiselectField extends TreeDropdownField
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @deprecated 4.0..5.0
|
||||
* @internal To be removed in 5.0
|
||||
*/
|
||||
protected function objectForKey($key)
|
||||
{
|
||||
@ -281,7 +281,7 @@ class TreeMultiselectField extends TreeDropdownField
|
||||
* This fix is not ideal, but supposed to keep backward compatibility for SS4.
|
||||
* Since SS5 this method should be removed and NULL should be used instead of 'unchanged'.
|
||||
*/
|
||||
if ($this->getKeyField() ==='ID' && $key === 'unchanged') {
|
||||
if ($this->getKeyField() === 'ID' && $key === 'unchanged') {
|
||||
$key = null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user