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

Admin interface does not show value 0 for Number field on nested objects #69

Closed
levynir opened this issue Jul 5, 2017 · 2 comments
Closed
Labels

Comments

@levynir
Copy link

levynir commented Jul 5, 2017

Steps to reproduce:

  1. Create a model like this:
module.exports.Example = mongoose.model('Example', new mongoose.Schema({
    title:      { type: String, },
    type:       { type: String, enum: ['buttons','select','form']},
    buttons:    [{
        title: String,
        value: Number
    }],
    fields:     [{
        title: String,
        ftype: { type: String, enum: ['select', 'input']},
        values: { type: Array },
    }]
}));
  1. Go to Forest Admin
  2. Add a new Example
  3. Add two buttons
  4. Button 1: title=Yes, Value=100
  5. Button 2: title=No, Value=0
  6. Save Example object
  7. Button 2 does not show the value in the admin interface
@arnaudbesnier
Copy link
Member

hey @levynir, thanks for the report!

We will fix this before the end of the week.
I'll let you know.

🌲🌲🌲

@lucasscariot
Copy link
Contributor

Hello @levynir, we have just deployed a fix for this behaviour. No liana update required, only our client application was concerned 🙂

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

No branches or pull requests

3 participants