Skip to content

Commit a613e60

Browse files
committed
fix: error message hasn't been shown when user doesn't have permissions to download a file but tries to do so.
Fix another regression after c2a1c00 commit.
1 parent e8731df commit a613e60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/ru/mystamps/web/feature/series/SeriesController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ public static void loadErrorsFromDownloadInterceptor(
568568
// didn't specify a file but somehow provide a URL to an image. In this case,
569569
// let's show an error message that file is required.
570570
result.rejectValue(
571-
"image",
571+
DownloadImageInterceptor.UPLOADED_IMAGE_FIELD_NAME,
572572
"ru.mystamps.web.support.beanvalidation.NotEmptyFilename.message"
573573
);
574574
form.nullifyImageUrl();

0 commit comments

Comments
 (0)