*

MrWolf

  • **
  • 13 posts
Disabled categories still showing (bug?)
« on: February 09, 2017, 01:08:09 AM »
I think I found a bug in the Veronika theme: when the "Category Selection on Publish" parameter is set to "Flat selection (icons)" in the Publish listing page it shows also the categories that have been disabled by the admin.
If I set this parameter to "Cascading drop-downs" or "One select box", the disabled categories are not shown.
Can you help me to fix this? Thank you!

*

MB Themes

Re: Disabled categories still showing (bug?)
« Reply #1 on: February 09, 2017, 07:53:48 AM »
@MrWolf
Thanks for reporting this bug.

Go to file:
oc-content/themes/veronika/functions.php

Find:
Code: [Select]
findSubcategories
Replace with:
Code: [Select]
findSubcategoriesEnabled

There are 3 occurences of this function.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

MrWolf

  • **
  • 13 posts
Re: Disabled categories still showing (bug?)
« Reply #2 on: February 09, 2017, 02:59:26 PM »
Thank you for the quick reply, but this is not a complete fix.
I can still see disabled root categories (while subcategories are now gone with the fix).

*

MB Themes

Re: Disabled categories still showing (bug?)
« Reply #3 on: February 09, 2017, 03:24:21 PM »
@MrWolf
Same as before, but now replace findRootCategories with findRootCategoriesEnabled
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

MrWolf

  • **
  • 13 posts
Re: Disabled categories still showing (bug?)
« Reply #4 on: February 09, 2017, 04:47:02 PM »
Fixed, thank you!  ;)