Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
27 Nov 2026

Pull Request for Issue # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

This change was created with the help of AI (Claude Code).

Summary of Changes

Whether numitems is calculated for categories depends on the countItems option the models pass to the categories service. The models used the wrong options:

  • CategoriesModel (layout uses show_cat_num_links_cat / show_empty_categories_cat) checked show_cat_num_links.
  • CategoryModel (subcategories layout uses show_cat_num_links / show_empty_categories) checked show_cat_num_links_cat and show_empty_categories without negation.

When the item counts are not calculated, numitems is 0. With "Empty Categories" set to Hide, categories that contain weblinks are hidden and the shown counts are 0.

The models now use the same options as their layouts, like the core components (count when the number is shown or when empty categories are hidden).

Testing Instructions

  • Create a category tree with weblinks in the subcategories.
  • Menu item "List All Web Link Categories": set # Web Links to Show and Empty Categories to Hide in the Categories tab, but # Web Links to Hide in the Category tab.
  • Menu item "List Web Links in a Category" for the parent category: set Empty Categories to Hide and # Web Links to Show in the Category tab of the options.
  • View both menu items.

Expected result

Categories with weblinks are listed and show the correct number of weblinks; empty categories are hidden.

Actual result

Depending on the option combination categories with weblinks are hidden and/or the counts show 0.

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment