Skip to content

Commit 0b5e35a

Browse files
API Rename FormField Value to getFormattedValue (#918)
2 parents 2099199 + bc40a7c commit 0b5e35a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Forms/LocaleToggleColumn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function getColumnMetadata($gridField, $columnName)
9393

9494
public function handleSave(GridField $gridField, DataObjectInterface $record)
9595
{
96-
$value = $gridField->Value();
96+
$value = $gridField->getValue();
9797

9898
// Keys for this value will be list of locales to enable
9999
$enabledLocales = isset($value[LocaleToggleColumn::COLUMN_NAME])

tests/php/Model/LocaleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public function testGlobalDefaultCheckedOnFirstLocale()
212212

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

218218
public function testGetLocaleSuffix()

0 commit comments

Comments
 (0)