Skip to content

Commit 74fa792

Browse files
committed
Fixed media upload transiency handling
1 parent 50d7d62 commit 74fa792

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Libraries/SmartStore.Services/Media/MediaExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ internal static void UpdateTransientStateCore<TMedia>(
152152
}
153153
}
154154

155-
if (prevMediaId > 0)
155+
if (prevMediaId > 0 && isModified)
156156
{
157157
// ID changed, so delete old record
158158
media = rs.GetById(prevMediaId);

0 commit comments

Comments
 (0)