Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_jobs
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_jobs
Commits
8b1e02bc
Verified
Commit
8b1e02bc
authored
1 month ago
by
Kevin Ditscheid
Browse files
Options
Downloads
Patches
Plain Diff
[BUGFIX] Remove sg-account Pagination class and fix the pagination
parent
b5c29cc8
No related branches found
No related tags found
1 merge request
!52
Feature 5168 unify root page selector
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Classes/Controller/BackendController.php
+2
-19
2 additions, 19 deletions
Classes/Controller/BackendController.php
with
2 additions
and
19 deletions
Classes/Controller/BackendController.php
+
2
−
19
View file @
8b1e02bc
...
@@ -118,28 +118,11 @@ class BackendController extends ActionController {
...
@@ -118,28 +118,11 @@ class BackendController extends ActionController {
??
$backendUser
->
getModuleData
(
'itemsPerPage'
,
'ses'
)
// Retrieve from session if available
??
$backendUser
->
getModuleData
(
'itemsPerPage'
,
'ses'
)
// Retrieve from session if available
??
10
??
10
);
);
// Store itemsPerPage in the session
$backendUser
->
pushModuleData
(
'itemsPerPage'
,
$itemsPerPage
);
// Ensure at least 1 item per page
// Ensure at least 1 item per page
$itemsPerPage
=
max
(
$itemsPerPage
,
1
);
$itemsPerPage
=
max
(
$itemsPerPage
,
1
);
// Create the query builder
// Store itemsPerPage in the session
$usersQueryBuilder
=
$this
->
frontendUserRepository
->
getUsersByPidForBackendList
(
$backendUser
->
pushModuleData
(
'itemsPerPage'
,
$itemsPerPage
);
$pageUid
,
$filters
,
$itemsPerPage
);
// 🛠 Recreate Pagination with updated values
$pagination
=
GeneralUtility
::
makeInstance
(
Pagination
::
class
,
$usersQueryBuilder
,
$currentPage
,
$itemsPerPage
);
$this
->
moduleTemplate
->
assign
(
'pagination'
,
$pagination
);
// create docheader + buttons
// create docheader + buttons
$pageInfo
=
BackendUtility
::
readPageAccess
(
$pageUid
,
$GLOBALS
[
'BE_USER'
]
->
getPagePermsClause
(
1
));
$pageInfo
=
BackendUtility
::
readPageAccess
(
$pageUid
,
$GLOBALS
[
'BE_USER'
]
->
getPagePermsClause
(
1
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment