Skip to content

Commit

Permalink
API Rename FormField Value to getFormattedValue
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jan 21, 2025
1 parent 36b4f5e commit 3d42ef3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Forms/LocaleToggleColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function getColumnMetadata($gridField, $columnName)

public function handleSave(GridField $gridField, DataObjectInterface $record)
{
$value = $gridField->Value();
$value = $gridField->getValue();

// Keys for this value will be list of locales to enable
$enabledLocales = isset($value[LocaleToggleColumn::COLUMN_NAME])
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Model/LocaleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public function testGlobalDefaultCheckedOnFirstLocale()

/** @var CheckboxField $checkbox */
$checkbox = $fields->fieldByName('Root.Main.IsGlobalDefault');
$this->assertTrue((bool)$checkbox->Value());
$this->assertTrue((bool)$checkbox->getValue());
}

public function testGetLocaleSuffix()
Expand Down

0 comments on commit 3d42ef3

Please sign in to comment.