Skip to content

Commit cfbeab4

Browse files
committed
Cannot merge "Added filename to expando object" because the target file does not exist anymore
1 parent f81fa81 commit cfbeab4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Libraries/SmartStore.Services/DataExchange/ExportTask/ExportProfileTask.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,9 @@ private ExpandoObject ToExpando(ExportProfileTaskContext ctx, Picture picture, i
812812
expando._ImageUrl = _pictureService.GetPictureUrl(picture, detailsPictureSize, false, ctx.Store.Url);
813813
expando._FullSizeImageUrl = _pictureService.GetPictureUrl(picture, 0, false, ctx.Store.Url);
814814

815+
var relativeUrl = _pictureService.GetPictureUrl(picture);
816+
expando._FileName = relativeUrl.Substring(relativeUrl.LastIndexOf("/") + 1);
817+
815818
return expando as ExpandoObject;
816819
}
817820

0 commit comments

Comments
 (0)