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 14, 2025
1 parent 5af6c1e commit 56e74e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/Forms/UploadField.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function getSchemaStateDefaults()
{
$state = parent::getSchemaStateDefaults();
$state['data']['files'] = $this->getEncodedItems();
$state['value'] = $this->Value() ?: ['Files' => []];
$state['value'] = $this->getValue() ?: ['Files' => []];
return $state;
}

Expand Down

0 comments on commit 56e74e4

Please sign in to comment.