The method below is producting this debug output.
Debug (StudentSearch_Controller->StudentSearchResults() in line 74 of StudentSearch.php)
waldron
Debug (StudentSearch_Controller->StudentSearchResults() in line 85 of StudentSearch.php)
*
...
// Get student search results for display on template
function StudentSearchResults(){
$searchstring=Session::get('SearchString');
Debug::show($searchstring);
if ($searchstring="*") {
$results = DataObject::get('Student','','Lastname,FirstName');
}
else {
$results = DataObject::get('Student',"`Lastname`='".Convert::raw2sql($searchstring)."'",'Lastname,FirstName');
}
Debug::show($searchstring);
return $results;
}
....
It seems to me that the if statement is setting the value of the searchstring.
Any ideas?