diff --git a/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Saas.cs b/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Saas.cs index da309a97..3a0c7759 100644 --- a/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Saas.cs +++ b/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Saas.cs @@ -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, diff --git a/ui/src/proxy/menus/models.ts b/ui/src/proxy/menus/models.ts index 729dd984..2a37d195 100644 --- a/ui/src/proxy/menus/models.ts +++ b/ui/src/proxy/menus/models.ts @@ -15,7 +15,6 @@ export interface MenuDto extends FullAuditedEntityDto { userId?: string roleId?: string cultureName?: string - group?: string shortName?: string menuTextTr?: string menuTextEn?: string diff --git a/ui/src/views/admin/listForm/wizard/Wizard.tsx b/ui/src/views/admin/listForm/wizard/Wizard.tsx index 4427cd2f..572fa708 100644 --- a/ui/src/views/admin/listForm/wizard/Wizard.tsx +++ b/ui/src/views/admin/listForm/wizard/Wizard.tsx @@ -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) }