Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Minor fix - update path for default picture
KrzysztofPajak2722dcbf21e0
diff --git a/src/Business/Grand.Business.Storage/Services/PictureService.cs b/src/Business/Grand.Business.Storage/Services/PictureService.csindex e406e4f15..e5bc656c6 100644--- a/src/Business/Grand.Business.Storage/Services/PictureService.cs+++ b/src/Business/Grand.Business.Storage/Services/PictureService.cs@@ -274,7 +274,7 @@ namespace Grand.Business.Storage.Servicesvar filePath = await GetPicturePhysicalPath(_mediaSettings.DefaultImageName);if (string.IsNullOrEmpty(filePath)){- return _mediaFileStore.Combine(CommonPath.ImagePath, "no-image.png");+ return _mediaFileStore.Combine(_mediaSettings.StoreLocation, CommonPath.ImagePath, "no-image.png");}if (targetSize == 0){diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Shared/EditorTemplates/Picture.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Shared/EditorTemplates/Picture.cshtmlindex 1304ed450..1ec732ac9 100644--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Shared/EditorTemplates/Picture.cshtml+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Shared/EditorTemplates/Picture.cshtml@@ -76,7 +76,7 @@ else}}).on("complete", function(event, id, name, responseJSON, xhr) {if (responseJSON.success) {- $("#@(clientId + "image")").html("<img src='" + responseJSON.imageUrl + "'/>");+ $("#@(clientId + "image")").html("<img src='" + responseJSON.imageUrl + " width='100' >");$("#@(clientId + "value") input").val(responseJSON.pictureId);$("#@(clientId + "remove")").show();}@@ -86,7 +86,7 @@ else});$("#@(clientId + "remove")").click(function(e) {- $("#@(clientId + "image")").html("<img src='@await pictureService.GetDefaultPictureUrl(targetPictureSize)'/>");+ $("#@(clientId + "image")").html("<img src='@await pictureService.GetDefaultPictureUrl(targetPictureSize)' width='100' >");$("#@(clientId + "value") input").val('');$(".qq-upload-list").empty();$(this).hide();