mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX: Undefined variable in TreeDropdownField.php
I'm guessing this was just a simple typo. Checked this by searching on SiteTree, behaves as expected after this change.
This commit is contained in:
parent
837304b81b
commit
9b0564b7d6
@ -434,7 +434,7 @@ class TreeDropdownField extends FormField {
|
||||
$sourceObject = $this->sourceObject;
|
||||
$wheres = array();
|
||||
if(singleton($sourceObject)->hasDatabaseField($this->labelField)) {
|
||||
$wheres[] = "\"$searchField\" LIKE '%$this->search%'";
|
||||
$wheres[] = "\"$this->labelField\" LIKE '%$this->search%'";
|
||||
} else {
|
||||
if(singleton($sourceObject)->hasDatabaseField('Title')) {
|
||||
$wheres[] = "\"Title\" LIKE '%$this->search%'";
|
||||
|
Loading…
x
Reference in New Issue
Block a user