mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2476 from kinglozzer/treedropdownfield-undefined-var
FIX: Undefined variable in TreeDropdownField.php
This commit is contained in:
commit
6e72262c96
@ -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…
Reference in New Issue
Block a user