Skip to content

Commit

Permalink
editor: fix 'oneOf' data loading
Browse files Browse the repository at this point in the history
* Fixes the loading of 'oneOf' data when editing a record.
* Closes #1102.

Co-Authored-by: Alicia Zangger <[email protected]>
  • Loading branch information
Alicia Zangger authored and AoNoOokami committed Jul 21, 2020
1 parent b69936a commit 4ec4ab7
Showing 1 changed file with 7 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@
"type": "string",
"readOnly": true,
"default": "rdami:1001",
"const": "rdami:1001",
"form": {
"templateOptions": {
"cssClass": "col-lg-6"
Expand Down Expand Up @@ -546,6 +547,7 @@
"type": "string",
"readOnly": true,
"default": "rdami:1002",
"const": "rdami:1002",
"form": {
"templateOptions": {
"cssClass": "col-lg-6"
Expand Down Expand Up @@ -605,6 +607,7 @@
"type": "string",
"readOnly": true,
"default": "rdami:1003",
"const": "rdami:1003",
"form": {
"templateOptions": {
"cssClass": "col-lg-6"
Expand Down Expand Up @@ -659,6 +662,7 @@
"type": "string",
"readOnly": true,
"default": "rdami:1004",
"const": "rdami:1004",
"form": {
"templateOptions": {
"cssClass": "col-lg-6"
Expand Down Expand Up @@ -721,20 +725,12 @@
"title": "Type",
"type": "string",
"readOnly": true,
"enum": [
"person"
],
"default": "person",
"const": "person",
"form": {
"templateOptions": {
"cssClass": "col-lg-6"
},
"options": [
{
"label": "Person",
"value": "person"
}
]
}
}
},
"name": {
Expand Down Expand Up @@ -807,17 +803,9 @@
"title": "Type",
"type": "string",
"default": "organisation",
"const": "organisation",
"readOnly": true,
"enum": [
"organisation"
],
"form": {
"options": [
{
"label": "Organisation",
"value": "organisation"
}
],
"templateOptions": {
"cssClass": "col-lg-6"
}
Expand Down

0 comments on commit 4ec4ab7

Please sign in to comment.