Hi,
I have an issue with the ordering in which the groups are displayed when listing a category. For example, with the URL "index.php?option=com_comprofiler&view=pluginclass&plugin=cbgroupjive&action=categories&id=3"
When groups are made, the DB field "ordering" is not updated correctly, so there are groups with duplicated "ordering" numbers (1). And so the newest group will not always be display at the first position.
In my case, the ordering should be - ORDER BY 'id' DESC - so that newest groups will always be on first position at category display. Off course, I can create an CB Auto Action triggered every time a new group is added/changed with the SQL-code below:
Code:
SET @cnt = 0; UPDATE #__groupjive_groups SET ordering = @cnt := (@cnt+1) ORDER BY id DESC;
But it would be nicer for system maintenance and system performance if I could fix the problem where it goes wrong, instead of running performance consuming queries time after time to fix the symptoms of that problem, the rest of my life
.
Hope you can help,
Noa