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

display of createdAt, updatedAt mixed when editing, creating instance #10

Open
ScottMaxson opened this issue Oct 12, 2016 · 0 comments
Open

Comments

@ScottMaxson
Copy link
Contributor

ScottMaxson commented Oct 12, 2016

Strange form behavior when (at least "createdAt" and "updatedAt" are not excluded using the ignoreFields property when initializing an EditController.

With constructor like this (actually in my case it's AdminController):

constructor() {
    super({
      modelIdentity: 'datasets-dataset',
      icon: 'fa fa-table',
      ignoreFields: ['id', 'fields', 'rowCount' ],
      instanceTitleField: 'DataSet'
    })
  }

results in an edit form with 2 input fields labeled "Created At" but both holding values from the updatedAt attribute. The template here apparently gets these from nxus-storage HasModels so not sure what's getting the attribute label/name's mixed (and thus this issue might belong on nxus-storage).

This was produced using sails-mongo adapter.
image

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

No branches or pull requests

1 participant