-
Notifications
You must be signed in to change notification settings - Fork 920
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
Ajax table view doensn't work with model_function columns #217
Comments
Hi @AndreyBobrov , just saw your issue, sorry, I don't know how it slipped through. Hmm... I'm afraid replacing "reject" with "filter" would prevent people from using their own custom columns in the search, so we can't do that. But I will place "model_function" and "model_function_attribute" in the "reject" for now, that should at least prevent errors, right? I'm planning a complete rewrite of the Thanks, cheers! |
@AndreyBobrov Similar issue #190. I bypassed it by overwriting the Ajax table and adding the model_function in the reject list. Another potential quick fix is to change the way you add model_function in a column like this: |
Any news of when this bug will be resolves? |
@adbmdp yeah, I think I fixed it, but i'm still testing. I will let you know when we're done. |
He rewrite entire search function and add few functions in ReadTrait: |
Hi @indra1 , Have you had the time to test it out, is it OK from your perspective? Thanks, cheers! |
@mdevo he is a she. And yes, I removed a library and I added some functions Do you guys have any proposals for that? Edit: some people were saying it's kind of slow so i'd like to look into that as well. Please let me know your thoughts |
model_function, model_function_attribute columns doesn't use actual db columns, so this causes an issue in search() function in trait AjaxTable:
This code tries to select non-existent fields from entity table. I think that the right thing would be to replace "reject" method with "filter" and list the types of fields out there that use the real database fields (so user defined types also will work) like that:
The text was updated successfully, but these errors were encountered: