Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit form for subdocuments not displaying properly #44

Closed
vshulev opened this issue Feb 24, 2017 · 3 comments
Closed

Edit form for subdocuments not displaying properly #44

vshulev opened this issue Feb 24, 2017 · 3 comments
Assignees

Comments

@vshulev
Copy link

vshulev commented Feb 24, 2017

Hi,

I believe there are a couple of bugs when adding a new subdocument in the Forest Admin app.

Firstly, enums correctly display as drop-downs when adding the main document, but in the subdocument there are no inputs at all. Here's an example of a regular string field and two enums it a subdocument:
capture

The other issue is again related to sudocuments. Auto-generated input fields such as id and created_at, updated_at are not disabled.

@arnaudbesnier
Copy link
Member

Hi @vshulev you're right, subdocuments do not support enums properly.
I made the enhancement. The fix should be released the coming week.
I'll let you know.

Thanks for the report.

@SeyZ SeyZ closed this as completed in #46 Mar 15, 2017
@laruche
Copy link

laruche commented Oct 1, 2018

Hello
I still found same error on my subdocuments (include in Array)

content : { type: [ { locale : { type : String, enum : ['FR_FR', 'AR_AR'], required : true, default : 'FR_FR' } } ] }
capture d ecran 2018-10-01 a 17 37 19

@arnaudbesnier
Copy link
Member

Hi @lauche you're in the context of an array of subdocuments (vs a single subdocument here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants