Advertisement:

Author Topic: Disabled Categories in the Control Panel  (Read 102 times)

Gilou26

  • Jr. Member
  • **
  • Posts: 84
Disabled Categories in the Control Panel
« on: July 06, 2019, 01:01:46 pm »
Hi.
With Osclass 3.8.0 and Osclasswizards 2.0.6, categories that are disabled in the Control Panel are still visible in the drop-down menu.
I do not want to delete these categories in the database because I may need them.
I found this in the forum for the item.form.class.php file but it does not work.:
Code: [Select]
[b]unset($tmp_categories_tree);
            if($categories == null) {
                $categories = Category::newInstance()->listEnabled();
            }[/b]

How to prevent this?
Thanks for your help.

WEBmods

  • Hero Member
  • *****
  • Posts: 936
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: Disabled Categories in the Control Panel
« Reply #1 on: July 08, 2019, 02:01:26 pm »
Hello!

Dropdown menu when posting an item, when searching? Or all the menus?

Regards.

Gilou26

  • Jr. Member
  • **
  • Posts: 84
Re: Disabled Categories in the Control Panel
« Reply #2 on: July 08, 2019, 07:31:06 pm »
Hi patrickFromCroatia.
The problem is when we do a search.
Finally, I deleted all categories that I did not use. I hope I do not need it.
Thanks anyway for your response.