ENH Don't use keyword "self" (#410)

This commit is contained in:
Guy Sartorelli 2024-08-02 11:15:02 +12:00 committed by GitHub
parent ea870eb30f
commit 6c6f43ca84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -447,7 +447,7 @@ class GridFieldNestedForm extends AbstractGridFieldComponent implements
public function handleSave(GridField $gridField, DataObjectInterface $record)
{
$postKey = self::POST_KEY;
$postKey = GridFieldNestedForm::POST_KEY;
$value = $gridField->Value();
if (isset($value['GridState']) && $value['GridState']) {
// set grid state from value, to store open/closed toggle state for nested forms