-
Notifications
You must be signed in to change notification settings - Fork 207
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
Checkbox Relation selection problem #1187
Comments
I am unable to reproduce this problem, my test config: 'test' => new ActiveQueryCheckboxInjector([
'query' => NavItem::find(),
]), I could select the items from the nav item table, and print them in the block view. Whats does your model look like? |
|
The ngRestConfig is not related to the ActiveQueryCheckboxInjector. |
What happens if you choosen another |
If i use |
It looks like the
|
But then only those fields will be displayed? But the selection wont work anymore? What if you choose a not i18n casted field in the select? I tryed the select() as well and it worked fine, hmm. my test case: 'test' => new ActiveQueryCheckboxInjector([
'query' => NavItem::find()->select(['title']),
]), |
ok maybe i am miss understanding the use of selection ... In my case select() was used to limit the labels from the checkboxes but not the output in the view |
Currently it does affect both of them (the select checkbox and the models extra data in the view file). Maybe it should only affect the select checkbox in the administration view, but this is not related to your problem - cause you where "unable to select a checkbox, cause it selected all of them then"? |
so the problems appears only when |
probably yes |
@dev7ch I just added new option Don't forget to remove the |
Yes, the new implementation works great with i18n fields. Cheers & Thanks :) |
This Example above is referrs to a NgRest model.
If you select one checkbox in the admin backend, all checkboxes getting selected.
Any ideas?
The text was updated successfully, but these errors were encountered: