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:
Ingo Schommer 2016-03-21 22:54:08 +13:00
parent 5d88950735
commit 8ae2894890
2 changed files with 6 additions and 6 deletions

View File

@ -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(),

View File

@ -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',