hi guys,

when i create a page display with delete link in field and full page 10 per page.

After the unique record on page 2 (for example) is removed (as described in the initial post), user is redirected to an empty page 2, with no pager and empty message displayed....
Most likely, because I would guess the query is run by Views for page 2, so there would be something like LIMIT 10, OFFSET 10 in the query which returns an empty results set (since a record has just been removed).

Comments

ycshen’s picture

Status: Active » Needs review
StatusFileSize
new1.77 KB

hi guys,

I have patched this problem on the following attachment.

Feel free to let me know if you would have any questions, comments or concerns on any aspects of the discussed feature, I would be glad to explain in more details.
Thanks very much to all, in advance, for your comments, feedback, testing, reviews and reporting.
Cheers!

ycshen’s picture

Version: 7.x-2.0-rc2 » 7.x-2.x-dev
ycshen’s picture

StatusFileSize
new9.96 KB
new4.84 KB
new9.09 KB

Thank @DYdave 's help in DGO.
we talk about this problem on the following link.
https://groups.drupal.org/node/299073#comment-928483

the attachment is the screamshot:

  1. i have 11 items.
  2. create a view has delete link,full pager 10 item per page,so page 2 have unique item.
  3. when i delete the unique one,the destantion will rediret to page 2 ,and page 2 is empty.

my patch will fix this problem, if a unique item in a page,when delete it ,the destantion will rediret to the previous page.

fmizzell’s picture

Title: rewrite destination parameter when using delete link » rewrite destination parameter when using delete link with views
Issue summary: View changes

  • fmizzell committed 0ff8477 on 7.x-2.x authored by ycshen
    Issue #2005860 by ycshen: rewrite destination parameter when using...
fmizzell’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.