Project

General

Profile

Actions

Bug #3841

closed

General new group edit does not display category dropdwon correctly

Added by krileon over 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
01 January 2013
Due date:
% Done:

100%

Estimated time:

Description

When a parent category has group create disabled, but the children have group create enabled it results in the categories not showing in the dropdown. It however should still show the nested categories as they allow group creation. It should probably turn the parent into an optgroup in this situation (so it can't be selected).

https://www.joomlapolis.com/forum/153-professional-member-support/217641-no-category-groups-list-available-on-new-group-create?limit=6&start=6

Actions #1

Updated by krileon over 11 years ago

  • Target version set to 2.7.0
Actions #2

Updated by krileon over 11 years ago

This may not be possible to fix due to unlimited depth capability or disabling the proper sorting/indenting of categories in the dropdown. What's happening is the parent doesn't exist in the array returned from the query retrieving categories that allow group creation and when it sorts them based of parent order it removes the child because the parent does not exist.

Actions #3

Updated by krileon over 11 years ago

  • % Done changed from 0 to 10

New function will be needed to loop through and properly add categories/groups to an options array. Remove optgroups that have no children as well. Test implementation shows promising results.

Actions #4

Updated by krileon over 11 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 10 to 100

Implemented getCategoryOptions and getGroupOptions class functions to properly build a options list of category and group edit pages. These are only implemented to frontend as backend does not need access or permission checking. This increased query count and page load times slightly due to much more access checks then previously as previously would easily omit half or more of the list due to previously only going 1 depth.

Actions #5

Updated by krileon about 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF