Skip to content

Commit

Permalink
Fix FieldName typo
Browse files Browse the repository at this point in the history
  • Loading branch information
cjsewell authored Apr 11, 2024
1 parent 47e7a98 commit cdfaf14
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 cdfaf14

Please sign in to comment.