cloudstorm / open-angular-crud

Open Angular Crud is an AngularJS library that automatically creates administration and data manipulation (CRUD) screens from database descriptors
MIT License
6 stars 0 forks source link

New resource is not linked if it is created on a subform #104

Closed kdaveed closed 6 years ago

kdaveed commented 6 years ago

Form with a subform:

screen shot 2018-03-01 at 11 24 08

After submitting the subform with the new resource (Team_1), the field (Head Coach) in the main form remains empty:

screen shot 2018-03-01 at 11 24 59

Moreover, an error is thrown by the client, which comes from the line cs-resource-input.js.coffee:86.

The error message is the following: screen shot 2018-03-01 at 11 31 42

The reason behind this error is that the formItem.id is a number in this case, not a string. However, if a toString() is inserted, in order to convert the value into a string, the error disappears, but the initial problem is not solved.