MenuDto içerisinde group sütunu kaldırıldı

This commit is contained in:
Sedat ÖZTÜRK 2026-08-31 11:22:35 +03:00
parent a3667539d6
commit 1fc7111da2
3 changed files with 8 additions and 13 deletions

View file

@ -6441,10 +6441,14 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
CultureName = LanguageCodes.En,
SourceDbType = DbType.String,
FieldName = "Id",
EditGroupOrderNo = 1,
EditOrderNo = 1,
EditorType2 = EditorTypes.dxTextBox,
ColSpan = 1,
CaptionName = "App.Listform.ListformField.Id",
Width = 0,
ListOrderNo = 1,
Visible = false,
Visible = true,
IsActive = true,
ValidationRuleJson = DefaultValidationRuleRequiredJson,

View file

@ -15,7 +15,6 @@ export interface MenuDto extends FullAuditedEntityDto<string> {
userId?: string
roleId?: string
cultureName?: string
group?: string
shortName?: string
menuTextTr?: string
menuTextEn?: string

View file

@ -903,22 +903,14 @@ const Wizard = () => {
/** Kok menu heniz listede degilse (yeni eklendi) gorunen ad olarak kullanilacak metinler. */
fallbackTexts?: { en: string; tr: string },
) => {
const rootItem = rawMenuItems.find((i) => i.code === rootCode)
// 1. Use group field if set
if (rootItem?.group) {
handlePermissionGroupChange(rootItem.group)
return
}
// 2. Match root code exactly against permission group names (e.g. "App.Saas" -> "App.Saas")
// 1. Match root code exactly against permission group names (e.g. "App.Saas" -> "App.Saas")
const exactMatch = permissionGroupList.find((g) => g.value === rootCode)
if (exactMatch) {
handlePermissionGroupChange(exactMatch.value ?? '')
return
}
// 3. Partial: find a group whose name contains the last segment of the root code
// 2. Partial: find a group whose name contains the last segment of the root code
const lastSegment = rootCode.split('.').pop()?.toLowerCase() ?? ''
if (lastSegment) {
const partialMatch = permissionGroupList.find((g) =>
@ -930,7 +922,7 @@ const Wizard = () => {
}
}
// 4. Fallback: set rootCode as a new creatable value (SelectBox supports free input)
// 3. Fallback: set rootCode as a new creatable value (SelectBox supports free input)
handlePermissionGroupChange(rootCode, fallbackTexts)
}