mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
BUGFIX Fixed ModelAdmin typo in $searchCriteria method parameter
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@60712 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d5b37fab3d
commit
5155acd2b6
@ -420,7 +420,7 @@ class ModelAdmin_CollectionController extends Controller {
|
||||
$model = singleton($this->modelClass);
|
||||
|
||||
$source = $model->summaryFields();
|
||||
foreach ($source as $fieldName => $label){
|
||||
if($source) foreach ($source as $fieldName => $label){
|
||||
$value[] = $fieldName;
|
||||
}
|
||||
$checkboxes = new CheckboxSetField("ResultAssembly", false, $source, $value);
|
||||
@ -473,7 +473,7 @@ class ModelAdmin_CollectionController extends Controller {
|
||||
*
|
||||
* @return Form
|
||||
*/
|
||||
function ResultsForm($searchCritera) {
|
||||
function ResultsForm($searchCriteria) {
|
||||
$model = singleton($this->modelClass);
|
||||
$summaryFields = $model->summaryFields();
|
||||
$resultAssembly = $_REQUEST['ResultAssembly'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user