mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Checking for existence of $searchFields in GridFieldRelationAdd
This commit is contained in:
parent
31ce29fa0b
commit
66f22441e5
@ -237,7 +237,7 @@ class GridFieldRelationAdd implements GridField_HTMLProvider, GridField_ActionPr
|
|||||||
return $this->placeholderText;
|
return $this->placeholderText;
|
||||||
} else {
|
} else {
|
||||||
$labels = array();
|
$labels = array();
|
||||||
foreach($searchFields as $searchField) {
|
if($searchFields) foreach($searchFields as $searchField) {
|
||||||
$label = singleton($dataClass)->fieldLabel($searchField);
|
$label = singleton($dataClass)->fieldLabel($searchField);
|
||||||
if($label) $labels[] = $label;
|
if($label) $labels[] = $label;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user