mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #165 from silverstripe-droptables/search-form-fix
BUG: Check for the parameter existence.
This commit is contained in:
commit
5938ab06ba
@ -172,7 +172,8 @@ class SearchForm extends Form {
|
|||||||
// legacy usage: $data was defaulting to $_REQUEST, parameter not passed in doc.silverstripe.org tutorials
|
// legacy usage: $data was defaulting to $_REQUEST, parameter not passed in doc.silverstripe.org tutorials
|
||||||
if(!isset($data)) $data = $_REQUEST;
|
if(!isset($data)) $data = $_REQUEST;
|
||||||
|
|
||||||
return Convert::raw2xml($data['Search']);
|
// The form could be rendered without the search being done, so check for that.
|
||||||
|
if (isset($data['Search'])) return Convert::raw2xml($data['Search']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user