Osclass forums

Support forums => General help => Topic started by: Gilou26 on July 06, 2019, 01:01:46 pm

Title: Disabled Categories in the Control Panel
Post by: Gilou26 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.
Title: Re: Disabled Categories in the Control Panel
Post by: WEBmods on July 08, 2019, 02:01:26 pm
Hello!

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

Regards.
Title: Re: Disabled Categories in the Control Panel
Post by: Gilou26 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.