Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lolo888
ISPConfig 3
Commits
e0321244
Commit
e0321244
authored
Jul 27, 2014
by
Till Brehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed: FS#3514 - pagination broken when changing search limit
parent
75cc840c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
interface/lib/classes/listform.inc.php
interface/lib/classes/listform.inc.php
+5
-0
No files found.
interface/lib/classes/listform.inc.php
View file @
e0321244
...
...
@@ -248,6 +248,8 @@ class listform {
public
function
getPagingSQL
(
$sql_where
=
'1'
)
{
global
$app
,
$conf
;
$old_search_limit
=
intval
(
$_SESSION
[
'search'
][
'limit'
]);
//* Add Global Limit from selectbox
if
(
!
empty
(
$_POST
[
'search_limit'
])
and
$app
->
functions
->
intval
(
$_POST
[
'search_limit'
])
>
0
){
...
...
@@ -272,6 +274,9 @@ class listform {
//* set PAGE to worth request variable "PAGE" - ? setze page auf wert der request variablen "page"
if
(
isset
(
$_REQUEST
[
"page"
]))
$_SESSION
[
"search"
][
$list_name
][
"page"
]
=
$app
->
functions
->
intval
(
$_REQUEST
[
"page"
]);
//* Set search to changed when search limit has been changed.
if
(
intval
(
$_SESSION
[
'search'
][
'limit'
])
!=
$old_search_limit
)
$this
->
searchChanged
=
1
;
//* PAGE to 0 set, if look for themselves ? page auf 0 setzen, wenn suche sich ge�ndert hat.
if
(
$this
->
searchChanged
==
1
)
$_SESSION
[
'search'
][
$list_name
][
'page'
]
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment