When cloning a project that contains disabled categories and (enabled) subcategories, then the new ParentCategoryId of the subcategories after the disabled ones are not set correctly, which makes them invisible in the web application.
I suspect that removing the "Disabled = 0" from the WHERE clause in the SQL Stored Procedure [BugNet_Project_CloneProject], and deleting the disabled categories after the insert will resolve the issue.
Anyway, I've rewritten the "-- Copy Categories" section in the stored procedure to make it more understandable (for me) and to resolve the issue in my installation. Please check the attachments for a working version (one version includes debug select statements).
I suspect that removing the "Disabled = 0" from the WHERE clause in the SQL Stored Procedure [BugNet_Project_CloneProject], and deleting the disabled categories after the insert will resolve the issue.
Anyway, I've rewritten the "-- Copy Categories" section in the stored procedure to make it more understandable (for me) and to resolve the issue in my installation. Please check the attachments for a working version (one version includes debug select statements).