@Juraj
i have default corporate site runing on KCMS 7.0 hotfix 91.
by setting break point at (/CMSModules/AdminControls/Controls/Class/NewClassWizard.ascx.cs Line:531 and other places that like this) and then trying to create new document type.
the result of if (SqlGenerator.GenerateDefaultQueriesToDB)
always false.
private void ProcessStep1(WizardNavigationEventArgs e)
{
....
switch (Mode)
{
case NewClassWizardModeEnum.DocumentType:
// Ensure default permissions
PermissionNameInfoProvider.CreateDefaultClassPermissions(dci.ClassID);
// Generate special document queries, for possible premature exit from wizzard
**if (SqlGenerator.GenerateDefaultQueriesToDB)**
{
SqlGenerator.GenerateQuery(dci.ClassName, QueryProvider.QUERYNAME_SEARCHTREE, SqlOperationTypeEnum.SearchTree, false, false);
SqlGenerator.GenerateQuery(dci.ClassName, QueryProvider.QUERYNAME_SELECTDOCUMENTS, SqlOperationTypeEnum.SelectDocuments, false, false);
SqlGenerator.GenerateQuery(dci.ClassName, QueryProvider.QUERYNAME_SELECTVERSIONS, SqlOperationTypeEnum.SelectVersions, false, false);
}
break;
case NewClassWizardModeEnum.Class:
break;
case NewClassWizardModeEnum.CustomTable:
// Ensure default custom table permissions
PermissionNameInfoProvider.CreateDefaultCustomTablePermissions(dci.ClassID);
break;
}
......
}
With Best Regards