Permalink
Browse files

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.
  • Loading branch information...
1 parent 837304b commit 9b0564b7d68e767d4c9fa4303cbad6f79a30132d @kinglozzer kinglozzer committed Oct 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 forms/TreeDropdownField.php
@@ -434,7 +434,7 @@ protected function populateIDs() {
$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%'";

0 comments on commit 9b0564b

Please sign in to comment.