Skip to content

Commit d05a74b

Browse files
committed
Fix creating new LegacyMediaFile from admin UI
Fix: Fix creating new LegacyMediaFile from admin UI
1 parent 37b19f8 commit d05a74b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
namespace Migration.Tool.Source;
2+
public static class FieldConstants
3+
{
4+
public const int MaxColumnSize = 1000;
5+
}

KVA/Migration.Tool.Source/Services/AssetFacade.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ private void AssertSuccess(IImportResult importResult, IUmtModel model)
333333
Enabled = true,
334334
Guid = new Guid("83650744-916B-4E19-A31F-B0250166D47D"),
335335
Properties = new FormFieldProperties { FieldCaption = "Title", },
336+
Settings = new FormFieldSettings { ControlName = "Kentico.Administration.TextInput" }
336337
};
337338

338339
internal static readonly FormField LegacyMediaFileDescriptionField = new()
@@ -342,8 +343,10 @@ private void AssertSuccess(IImportResult importResult, IUmtModel model)
342343
AllowEmpty = true,
343344
Visible = true,
344345
Enabled = true,
346+
ColumnSize = FieldConstants.MaxColumnSize,
345347
Guid = new Guid("98F43915-B540-478D-80A4-E294E631C431"),
346348
Properties = new FormFieldProperties { FieldCaption = "Description", },
349+
Settings = new FormFieldSettings { ControlName = "Kentico.Administration.TextArea" }
347350
};
348351

349352
public static readonly DataClassModel LegacyMediaFileContentType = new()

0 commit comments

Comments
 (0)