Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1385

Redirect to last page of list after switching PerPage value

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.2-B1
    • Component/s: Data Management
    • Labels:
      None
    • Change Log Group:
      Changed
    • Change Log Message:
      When per-page change in the grid resulted in "No Results" message automatically redirect to last page in the grid.
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      In kDBList::Query() switch to last possible page in case of:

      • it is frontend
      • HTTP referrer is current site (kHTTPQuery::refererIsOurSite())
      • Current page is bigger then 1
      • No records on current page.

      To switch page it need to call:

      $this->SetPage($this->GetTotalPages());
      $this->Query($force);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                glebs Gleb Sinkovskiy [Intechnic]
                Developer:
                Gleb Sinkovskiy [Intechnic]
                Reviewer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: