-
Notifications
You must be signed in to change notification settings - Fork 723
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
Choice field doesn't appear to work. #1075
Comments
Huh. Can you expose your whole entity definition ? |
I've created a repo that demonstrates the problem. These most recent commit adds a choice field that causes the issue. Clone this: https://github.com/Real-Serious-Games/admin-portal-template Install dependencies:
Run the server:
Navigate to the customer creation screen:
The following error should appear in your browser console:
Note that this issue only happens in the most recent commit. If you revert back to the prior commit and go to the customer creation screen there is no issue. |
The code that defines the entities can be found in customize.js. |
This looks to be the same issue as #778. I don't think that the fix for that issue has been released as part of 0.9.x. Did you find a solution to this issue on 0.9.1? |
Can you have a look on last master version and check if you can still reproduce the issue? |
No feedback since @jpetitcolas last request, closing... |
I've been trying to get a choices field into my admin page, specifically in the creation view.
I've tried the example from the documentation:
It causes the following error when opening the create page:
angular.js:13550 TypeError: t.choices is not a function
at pre (http://localhost:3000/bower_components/ng-admin/build/ng-admin.min.js:15:2545)
at http://localhost:3000/bower_components/angular/angular.js:9688:44
at invokeLinkFn (http://localhost:3000/bower_components/angular/angular.js:9694:9)
at nodeLinkFn (http://localhost:3000/bower_components/angular/angular.js:9072:11)
at compositeLinkFn (http://localhost:3000/bower_components/angular/angular.js:8397:13)
at nodeLinkFn (http://localhost:3000/bower_components/angular/angular.js:9088:24)
at compositeLinkFn (http://localhost:3000/bower_components/angular/angular.js:8397:13)
at nodeLinkFn (http://localhost:3000/bower_components/angular/angular.js:9088:24)
at compositeLinkFn (http://localhost:3000/bower_components/angular/angular.js:8397:13)
at publicLinkFn (http://localhost:3000/bower_components/angular/angular.js:8277:30)
The text was updated successfully, but these errors were encountered: