- Timestamp:
- 10/07/21 20:22:23 (3 years ago)
- Branches:
- master
- Children:
- ee0e297
- Parents:
- 276a8b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/it/finki/charitable/controller/DonationPostController.java
r276a8b6 r0c37625 127 127 @RequestParam String sort, 128 128 @RequestParam(required = false,defaultValue = "") String order) { 129 Page<DonationPost> postList = donationPostService.findPaginated(page,6, sort, order );129 Page<DonationPost> postList = donationPostService.findPaginated(page,6, sort, order, true); 130 130 if (postList.getSize() == 0) { 131 131 model.addAttribute("noPosts", true); … … 204 204 reasonService.save(reason); 205 205 reportPost.getReasons().add(reason); 206 reportPost.setNumReports(reportPost.getNumReports() + 1); 206 207 reportPostService.save(reportPost); 207 208 return String.format("redirect:/post?postid=%d", postid);
Note:
See TracChangeset
for help on using the changeset viewer.