File tree 4 files changed +3
-4
lines changed
webapp/WEB-INF/views/country
4 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public final class Url {
52
52
// CheckStyle: ignore LineLength for next 3 lines
53
53
public static final String ADD_SERIES_PAGE = "/series/add" ;
54
54
public static final String ADD_SERIES_WITH_CATEGORY_PAGE = "/series/add/category/{id}" ;
55
- public static final String ADD_SERIES_WITH_COUNTRY_PAGE = "/series/add/country/{id }" ;
55
+ public static final String ADD_SERIES_WITH_COUNTRY_PAGE = "/series/add/country/{slug }" ;
56
56
public static final String INFO_SERIES_PAGE = "/series/{id}" ;
57
57
public static final String ADD_IMAGE_SERIES_PAGE = "/series/{id}/image" ;
58
58
public static final String SEARCH_SERIES_BY_CATALOG = "/series/search/by_catalog" ;
Original file line number Diff line number Diff line change @@ -113,7 +113,6 @@ public String showInfoBySlug(
113
113
String lang = LocaleUtils .getLanguageOrNull (userLocale );
114
114
List <SeriesInfoDto > series = seriesService .findByCountryId (id , lang );
115
115
116
- model .addAttribute ("countryId" , id );
117
116
model .addAttribute ("countrySlug" , slug );
118
117
model .addAttribute ("countryName" , name );
119
118
model .addAttribute ("seriesOfCountry" , series );
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ public String showFormWithCategory(
144
144
145
145
@ RequestMapping (Url .ADD_SERIES_WITH_COUNTRY_PAGE )
146
146
public String showFormWithCountry (
147
- @ Country @ PathVariable ("id " ) LinkEntityDto country ,
147
+ @ Country @ PathVariable ("slug " ) LinkEntityDto country ,
148
148
Model model ) {
149
149
150
150
AddSeriesForm form = new AddSeriesForm ();
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ <h3 th:text="${#strings.capitalize(header)}">
95
95
96
96
<!--/*/
97
97
<div class="row" th:if="${justAddedCountry}">
98
- <div class="alert alert-success text-center col-sm-4 col-sm-offset-4" th:utext="#{t_country_just_added(@{${ADD_SERIES_WITH_COUNTRY_PAGE}(id =${countryId })})}">
98
+ <div class="alert alert-success text-center col-sm-4 col-sm-offset-4" th:utext="#{t_country_just_added(@{${ADD_SERIES_WITH_COUNTRY_PAGE}(slug =${countrySlug })})}">
99
99
Country has been added.<br />
100
100
Now you could <a href="../series/add.html" class="alert-link">proceed with creating series</a>.
101
101
</div>
You can’t perform that action at this time.
0 commit comments