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

One to many relation: string PK type #15

Closed
ajax13 opened this issue Dec 5, 2013 · 2 comments
Closed

One to many relation: string PK type #15

ajax13 opened this issue Dec 5, 2013 · 2 comments

Comments

@ajax13
Copy link

ajax13 commented Dec 5, 2013

Hi,
In oneToMany relation, in case we have "pk" with a string type we get a prob in edit view.

@ajax13
Copy link
Author

ajax13 commented Dec 5, 2013

i find the prob, in /node_modules/express-admin/lib/utils/template.js file for setActiveSingle() function

i change this line:
if (parseInt(rows[i]['__pk']) === parseInt(value))
with
if (rows[i]['__pk'] === value)

@simov
Copy link
Owner

simov commented Jun 8, 2014

@simov simov closed this as completed Jun 8, 2014
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

2 participants