Ignore:
Timestamp:
10/07/21 20:29:27 (3 years ago)
Author:
KostaFortumanov <kfortumanov@…>
Branches:
master
Children:
7888b17
Parents:
0c37625
Message:

bug fix

File:
1 edited

Legend:

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

    r0c37625 ree0e297  
    128128                        @RequestParam(required = false,defaultValue = "") String order) {
    129129        Page<DonationPost> postList = donationPostService.findPaginated(page,6, sort, order, true);
    130         if (postList.getSize() == 0) {
     130        if (postList.getTotalElements() == 0) {
    131131            model.addAttribute("noPosts", true);
    132132            return "album";
Note: See TracChangeset for help on using the changeset viewer.