Bug: UserGroup Filter #376
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#376
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Latest release.
Add a field for user groups say 'Primary Type' Select and set show as filter. When viewing in the frontend it's just rendering the ID's in the filter and not the ID as val and name as text.
Hey Tony, are you viewing it in a list view in the front end or you are talking about something completely different? If you could send some more details please?
I'm in the backend, looking at the code you have re-written a custom method to get the usergroup filter, but at just loading the column. I'm checking it now and will do a PR.
Ok I'm not quite sure how you are building the group selects but here is getTheUsergroup_one and getTheUsergroup_two. I've fixed getTheUsergroup_one for instance:
tbh could change it to getObjectList instead of array but it;s whatever you prefer.
Furthermore, text value is not show in backend lists.
Also, batch actions are 'Filtered' rather than 'All usergroups'
Hi @tonypartridge this is correct, I mean yes the user groups are not yet correctly displayed in the admin list view, nor is the filter working as expected.
We can try to resolve this, I think I left this undone due to other features more pressing at the time (I mean way back when I worked on that area). But the wires are there 👍 I will need to take a closer look, give me a few days and I will get back to you.
Thanks! Another bug....
When generating the frontend view of the backend view, usergroup fields and using the usergroup field I get two usergroup fields as a.usergroup AS usergroup a.usergroup doesn't exist. It would be for me a.school for instance.
At the time of the implementation I acted on the limited history mapping (integration) relationship of Joomla, that only allowed for one usergroup field per table/view can you confirm that this has changed?
Or was that for categories.. hmmm I will have to check. But I know there was a reason... it was a few years ago so I will also need to take a look at that. Reality is often these limitations were due to the nature of an unimportant features to me at the time I build that area of JCB. So if it is a bug or just me not implementing it fully remains to be seen.
Well we are including a usergroup field option within a table, the row stores the id. We should be able to filter based on the selected group. It's not controlling access in anyway at all.
The reason being in this scenario is we are preventing data duplication, the Usergroups have been setup for each usergroup so the client wants to say 'Group 1, Group 2' but they do not control filtering just for data purposes.
Would you be willing to share your admin view, attached to the demo component as a JCB package so I can be sure to be looking at the same implementation? You can remove any fields you feel are irrelevant, but be sure to leave more then just the usergroups.
Ok I have this fixed with:
in admin/helpers/complier/e_interpretation.php
I have tried doing a PR but having issues with line endings, can you confirm what system you are developing on and what line endings you are using?
Thanks