Skip to content

Commit

Permalink
Merge pull request #495 from cjsewell/patch-1
Browse files Browse the repository at this point in the history
Fix FieldName typo
  • Loading branch information
GuySartorelli authored Apr 16, 2024
2 parents f650a9d + cdfaf14 commit 5eeb859
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ use SilverStripe\ORM\Search\BasicSearchContext;
$searchContext = BasicSearchContext::create(null);
$searchFields = [
HiddenField::create(BasicSearchContext::config()->get('general_search_field_name')),
TextField::create('FeldName', 'Search Field Label'),
TextField::create('FieldName', 'Search Field Label'),
];
// Pass the BasicSearchContext into the GridFieldFilterHeader component
$searchContext->setFields(FieldList::create($searchFields));
Expand Down Expand Up @@ -127,7 +127,7 @@ use SilverStripe\Forms\TextField;
$detailForm = GridFieldDetailForm::create();
$detailForm->setFields(FieldList::create([
HiddenField::create('ID'),
TextField::create('FeldName', 'View Field Label'),
TextField::create('FieldName', 'View Field Label'),
]));
$gridField->getConfig()->addComponents([
GridFieldViewButton::create(),
Expand Down Expand Up @@ -295,7 +295,7 @@ class DataRepresentation extends ViewableData
{
return FieldList::create([
HiddenField::create('ID'),
TextField::create('FeldName', 'View Field Label'),
TextField::create('FieldName', 'View Field Label'),
]);
}

Expand Down

0 comments on commit 5eeb859

Please sign in to comment.