@@ -590,6 +590,7 @@ public static void loadErrorsFromDownloadInterceptor(
590
590
// CheckStyle: ignore LineLength for next 1 line
591
591
private Map <String , ?> prepareCommonAttrsForSeriesInfo (SeriesDto series , Integer currentUserId ) {
592
592
Map <String , Object > model = new HashMap <>();
593
+ Integer seriesId = series .getId ();
593
594
594
595
model .put ("series" , series );
595
596
@@ -607,7 +608,7 @@ public static void loadErrorsFromDownloadInterceptor(
607
608
model .put ("zagorskiNumbers" , zagorskiNumbers );
608
609
609
610
boolean isSeriesInCollection =
610
- collectionService .isSeriesInCollection (currentUserId , series . getId () );
611
+ collectionService .isSeriesInCollection (currentUserId , seriesId );
611
612
612
613
boolean userCanAddImagesToSeries =
613
614
isUserCanAddImagesToSeries (series );
@@ -619,12 +620,12 @@ public static void loadErrorsFromDownloadInterceptor(
619
620
&& SecurityContextUtils .hasAuthority (Authority .VIEW_SERIES_SALES )) {
620
621
621
622
List <PurchaseAndSaleDto > purchasesAndSales =
622
- seriesService .findPurchasesAndSales (series . getId () );
623
+ seriesService .findPurchasesAndSales (seriesId );
623
624
model .put ("purchasesAndSales" , purchasesAndSales );
624
625
}
625
626
626
627
if (SecurityContextUtils .hasAuthority (Authority .IMPORT_SERIES )) {
627
- ImportRequestInfo importInfo = seriesImportService .findRequestInfo (series . getId () );
628
+ ImportRequestInfo importInfo = seriesImportService .findRequestInfo (seriesId );
628
629
model .put ("importInfo" , importInfo );
629
630
}
630
631
0 commit comments