mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fix form schema ID getter
Also moved keys of higher importance to start of array, easier to review this way
This commit is contained in:
parent
5d88950735
commit
8ae2894890
@ -132,11 +132,11 @@ trait FormFieldSchemaTrait {
|
||||
*/
|
||||
public function getSchemaDataDefaults() {
|
||||
return [
|
||||
'name' => $this->getName(),
|
||||
'id' => $this->ID(),
|
||||
'type' => $this->getSchemaDataType(),
|
||||
'component' => $this->getSchemaComponent(),
|
||||
'id' => $this->ID,
|
||||
'holder_id' => null,
|
||||
'name' => $this->getName(),
|
||||
'title' => $this->Title(),
|
||||
'source' => null,
|
||||
'extraClass' => $this->ExtraClass(),
|
||||
|
@ -24,11 +24,11 @@ class FormSchemaTest extends SapphireTest {
|
||||
'data' => [],
|
||||
'fields' => [
|
||||
[
|
||||
'type' => "HiddenField",
|
||||
'component' => null,
|
||||
'id' => null,
|
||||
'holder_id' => null,
|
||||
'id' => 'Form_TestForm_SecurityID',
|
||||
'name' => 'SecurityID',
|
||||
'type' => "Hidden",
|
||||
'component' => null,
|
||||
'holder_id' => null,
|
||||
'title' => 'Security ID',
|
||||
'source' => null,
|
||||
'extraClass' => 'hidden',
|
||||
|
Loading…
x
Reference in New Issue
Block a user