File tree 1 file changed +7
-3
lines changed
src/main/java/ru/mystamps/web/controller
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -506,6 +506,12 @@ protected void addYearToModel(Model model) {
506
506
model .addAttribute ("years" , YEARS );
507
507
}
508
508
509
+ protected void addSellersToModel (Model model ) {
510
+ List <EntityWithParentDto > sellers = transactionParticipantService .findSellersWithParents ();
511
+ List <SelectItem > groupedSellers = GroupByParent .transformEntities (sellers );
512
+ model .addAttribute ("sellers" , groupedSellers );
513
+ }
514
+
509
515
protected static void loadErrorsFromDownloadInterceptor (
510
516
NullableImageUrl form ,
511
517
BindingResult result ,
@@ -604,9 +610,7 @@ private void addSeriesSalesFormToModel(Model model) {
604
610
model .addAttribute ("addSeriesSalesForm" , addSeriesSalesForm );
605
611
}
606
612
607
- List <EntityWithParentDto > sellers = transactionParticipantService .findSellersWithParents ();
608
- List <SelectItem > groupedSellers = GroupByParent .transformEntities (sellers );
609
- model .addAttribute ("sellers" , groupedSellers );
613
+ addSellersToModel (model );
610
614
611
615
List <EntityWithParentDto > buyers = transactionParticipantService .findBuyersWithParents ();
612
616
List <SelectItem > groupedBuyers = GroupByParent .transformEntities (buyers );
You can’t perform that action at this time.
0 commit comments