Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,15 @@ public async Task<CommandResult> Handle(MigrateFormsCommand request, Cancellatio

try
{
int formItems = cmsForm.FormItems;
BizFormInfo.Provider.Set(cmsForm!);

// Update FormItems manually, as BizFormInfo provider always resets the value to 0
using (var conn = ConnectionHelper.GetConnection())
{
conn.DataConnection.ExecuteNonQuery("UPDATE [CMS_Form] SET FormItems=@formItems WHERE FormID=@formID", new QueryDataParameters() { { "formItems", formItems }, { "formID", cmsForm.FormID } }, QueryTypeEnum.SQLQuery, true);
}

logger.LogEntitySetAction(newInstance, cmsForm);

primaryKeyMappingContext.SetMapping<BizFormInfo>(
Expand Down
8 changes: 4 additions & 4 deletions KVA/Migration.Tool.Source/Services/AssetFacade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public async Task<ContentItemSimplifiedModel> FromMediaFile(IMediaFile mediaFile
VersionStatus = VersionStatus.Published,
ContentItemData = new Dictionary<string, object?>
{
["Asset"] = new AssetFileSource
[LegacyMediaFileAssetField.Column!] = new AssetFileSource
{
ContentItemGuid = translatedMediaGuid,
Identifier = GuidHelper.CreateAssetGuid(translatedMediaGuid, contentLanguageName),
Expand Down Expand Up @@ -172,7 +172,7 @@ public async Task<ContentItemSimplifiedModel> FromAttachment(ICmsAttachment atta
VersionStatus = VersionStatus.Published,
ContentItemData = new Dictionary<string, object?>
{
["Asset"] = new AssetDataSource
[LegacyAttachmentAssetField.Column!] = new AssetDataSource
{
ContentItemGuid = translatedAttachmentGuid,
Identifier = GuidHelper.CreateAssetGuid(translatedAttachmentGuid, contentLanguageName),
Expand Down Expand Up @@ -311,7 +311,7 @@ private void AssertSuccess(IImportResult importResult, IUmtModel model)

internal static readonly FormField LegacyMediaFileAssetField = new()
{
Column = "Asset",
Column = "LegacyMediaFileAsset",
ColumnType = "contentitemasset",
AllowEmpty = true,
Visible = true,
Expand Down Expand Up @@ -339,7 +339,7 @@ private void AssertSuccess(IImportResult importResult, IUmtModel model)

internal static readonly FormField LegacyAttachmentAssetField = new()
{
Column = "Asset",
Column = "LegacyAttachmentAsset",
ColumnType = "contentitemasset",
AllowEmpty = true,
Visible = true,
Expand Down
2 changes: 2 additions & 0 deletions docs/Supported-Data.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,7 @@ The following types of data exist in Xperience by Kentico but are currently **no
4. Recalculate the contact groups.
- **License keys**
- Xperience by Kentico uses a different license key format.
- **Marketing automation**
- Migration of Marketing automation is currently not supported

Additionally, object values or other content with **Macros** will not work correctly after the migration. Macro expressions are currently not supported for most data in Xperience by Kentico.
Loading