File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/ru/mystamps/web/controller Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ public void showForm(
134134 model .addAttribute ("countries" , countries );
135135
136136 model .addAttribute ("years" , YEARS );
137+ model .addAttribute ("urlSuggest" , Url .INFO_COUNTRY_SERIES_PAGE );
137138
138139 AddSeriesForm addSeriesForm = new AddSeriesForm ();
139140 addSeriesForm .setPerforated (true );
@@ -427,9 +428,8 @@ public String searchSeriesByCatalog(
427428 */
428429 @ ResponseBody
429430 @ GetMapping (Url .INFO_COUNTRY_SERIES_PAGE )
430- public String guessCountryBy (@ CurrentUser Integer currentUserId ) {
431- String result = seriesService .guessCountryBy (currentUserId );
432- return "{\" country\" :\" " + result + "\" }" ;
431+ public String suggestCountryForUser (@ CurrentUser Integer currentUserId ) {
432+ return countryService .suggestCountryForUser (currentUserId );
433433 }
434434
435435 // CheckStyle: ignore LineLength for next 1 line
You can’t perform that action at this time.
0 commit comments