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() {
|
public function getSchemaDataDefaults() {
|
||||||
return [
|
return [
|
||||||
|
'name' => $this->getName(),
|
||||||
|
'id' => $this->ID(),
|
||||||
'type' => $this->getSchemaDataType(),
|
'type' => $this->getSchemaDataType(),
|
||||||
'component' => $this->getSchemaComponent(),
|
'component' => $this->getSchemaComponent(),
|
||||||
'id' => $this->ID,
|
|
||||||
'holder_id' => null,
|
'holder_id' => null,
|
||||||
'name' => $this->getName(),
|
|
||||||
'title' => $this->Title(),
|
'title' => $this->Title(),
|
||||||
'source' => null,
|
'source' => null,
|
||||||
'extraClass' => $this->ExtraClass(),
|
'extraClass' => $this->ExtraClass(),
|
||||||
|
@ -24,11 +24,11 @@ class FormSchemaTest extends SapphireTest {
|
|||||||
'data' => [],
|
'data' => [],
|
||||||
'fields' => [
|
'fields' => [
|
||||||
[
|
[
|
||||||
'type' => "HiddenField",
|
'id' => 'Form_TestForm_SecurityID',
|
||||||
'component' => null,
|
|
||||||
'id' => null,
|
|
||||||
'holder_id' => null,
|
|
||||||
'name' => 'SecurityID',
|
'name' => 'SecurityID',
|
||||||
|
'type' => "Hidden",
|
||||||
|
'component' => null,
|
||||||
|
'holder_id' => null,
|
||||||
'title' => 'Security ID',
|
'title' => 'Security ID',
|
||||||
'source' => null,
|
'source' => null,
|
||||||
'extraClass' => 'hidden',
|
'extraClass' => 'hidden',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user