Print current page results functionality in view not working w.r.t. to page

Created on 29 February 2024, 9 months ago
Updated 31 July 2024, 4 months ago

Problem/Motivation

The entity_print_views submodule isn't print results of a view w.r.t to pager instead of printing only the results displaying on the first page. even the pager is also not in sync.

Steps to reproduce

  1. Create a view that produces more than one result (say, 5 results.)
  2. Configure the view to use a pager displaying fewer rows than the total results from Step 1 above (say, 5 results)
  3. Add the Global 'Print' area to the header or footer
  4. Render the view, click on the 'View PDF' link and observe that the when you click on pager 2 or 3 (so on) always print the content of page 1 , content not change w.r.t to page

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

2.13

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @pooja_sharma
  • Pipeline finished with Success
    9 months ago
    Total: 231s
    #108306
  • Pipeline finished with Success
    9 months ago
    Total: 244s
    #108308
  • Pipeline finished with Success
    9 months ago
    Total: 248s
    #108309
  • Issue was unassigned.
  • Status changed to Needs review 9 months ago
  • 🇮🇳India Kanchan Bhogade

    Hi
    I've tested MR !53 on Drupal version 10
    The patch applied successfully...

    Testing Steps:

    1. Install Drupal version
    2. Install "Entity Print" module
    3. Create content for any content type like an Article (add 5-6 nodes)
    4. Create a view for content type and add a pager with 2or3 items.
    5. Add "Global: print" in the Footer/Header of view display.
    6. Go to the view, click on the 'View PDF' link, and observe that when you click on page 2 or 3 (and so on) always print the content of page 1, content does not change w.r.t to page
    7. Apply patch check for the same

    Test Result:
    Now if click on the 'View PDF' link of any page, can print the content w.r.t. particular page like if click on 2nd page "View PDF" print the 2nd page content

    Added videos for reference

    Keeping in need review for the code verification

  • Status changed to RTBC 5 months ago
  • 🇧🇷Brazil carolpettirossi Campinas - SP

    I applied the MR and it worked perfectly on my case. Moving this to RTBC. Hopefully this can be pushed to the next release.

  • Status changed to Needs work 4 months ago
  • 🇨🇦Canada tame4tex

    Added a comment to the MR as I don't think we should be adding an empty page parameter if we don't need to.

  • Pipeline finished with Canceled
    4 months ago
    Total: 151s
    #239043
  • Pipeline finished with Success
    4 months ago
    Total: 232s
    #239044
  • Status changed to Needs review 4 months ago
  • Thanks for suggestion, I have addressed the requested change - no need to add page parameter if empty

    Please review , moving NR.

Production build 0.71.5 2024