Ignore:
Timestamp:
10/07/21 20:22:23 (3 years ago)
Author:
NikolaCenevski <cenevskinikola@…>
Branches:
master
Children:
ee0e297
Parents:
276a8b6
Message:

Moderator pagination

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/it/finki/charitable/controller/DonationPostController.java

    r276a8b6 r0c37625  
    127127                        @RequestParam String sort,
    128128                        @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);
    130130        if (postList.getSize() == 0) {
    131131            model.addAttribute("noPosts", true);
     
    204204        reasonService.save(reason);
    205205        reportPost.getReasons().add(reason);
     206        reportPost.setNumReports(reportPost.getNumReports() + 1);
    206207        reportPostService.save(reportPost);
    207208        return String.format("redirect:/post?postid=%d", postid);
Note: See TracChangeset for help on using the changeset viewer.