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
7dca2b7a
Commit
7dca2b7a
authored
3 years ago
by
Georgi Mateev
Browse files
Options
Downloads
Patches
Plain Diff
[BUGFIX] Jobs are displayed twice in the sitemap
parent
88ef4ed7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Classes/Controller/JoblistController.php
+1
-0
1 addition, 0 deletions
Classes/Controller/JoblistController.php
Classes/Service/SitemapService.php
+5
-3
5 additions, 3 deletions
Classes/Service/SitemapService.php
with
6 additions
and
3 deletions
Classes/Controller/JoblistController.php
+
1
−
0
View file @
7dca2b7a
...
@@ -149,6 +149,7 @@ class JoblistController extends ActionController {
...
@@ -149,6 +149,7 @@ class JoblistController extends ActionController {
* @throws \TYPO3\CMS\Core\Context\Exception\AspectNotFoundException
* @throws \TYPO3\CMS\Core\Context\Exception\AspectNotFoundException
* @throws \TYPO3\CMS\Core\Error\Http\PageNotFoundException
* @throws \TYPO3\CMS\Core\Error\Http\PageNotFoundException
* @throws ImmediateResponseException
* @throws ImmediateResponseException
* @throws \TYPO3\CMS\Core\Package\Exception
*/
*/
public
function
indexAction
(
array
$filters
=
[],
int
$jobId
=
NULL
,
int
$currentPageBrowserPage
=
0
):
void
{
public
function
indexAction
(
array
$filters
=
[],
int
$jobId
=
NULL
,
int
$currentPageBrowserPage
=
0
):
void
{
if
(
$filters
)
{
if
(
$filters
)
{
...
...
This diff is collapsed.
Click to expand it.
Classes/Service/SitemapService.php
+
5
−
3
View file @
7dca2b7a
...
@@ -36,8 +36,10 @@ class SitemapService {
...
@@ -36,8 +36,10 @@ class SitemapService {
// find sites where job detail plugin is added
// find sites where job detail plugin is added
$queryBuilder
=
GeneralUtility
::
makeInstance
(
ConnectionPool
::
class
)
$queryBuilder
=
GeneralUtility
::
makeInstance
(
ConnectionPool
::
class
)
->
getQueryBuilderForTable
(
'tt_content'
);
->
getQueryBuilderForTable
(
'tt_content'
);
$databaseResource
=
$queryBuilder
->
select
(
'pid'
,
'pages'
,
'tstamp'
)
$databaseResource
=
$queryBuilder
->
select
(
'
tt_content.
pid'
,
'pages'
,
'
tt_content.
tstamp'
)
->
from
(
'tt_content'
)
->
from
(
'tt_content'
)
->
innerJoin
(
'tt_content'
,
'pages'
,
'pages'
,
'pages.uid = tt_content.pid
AND pages.shortcut < 1'
)
//TODO: or nav_hide ?
->
where
(
->
where
(
$queryBuilder
->
expr
()
->
andX
(
$queryBuilder
->
expr
()
->
andX
(
$queryBuilder
->
expr
()
->
eq
(
'CType'
,
$queryBuilder
->
createNamedParameter
(
'list'
)),
$queryBuilder
->
expr
()
->
eq
(
'CType'
,
$queryBuilder
->
createNamedParameter
(
'list'
)),
...
@@ -46,9 +48,9 @@ class SitemapService {
...
@@ -46,9 +48,9 @@ class SitemapService {
$queryBuilder
->
createNamedParameter
(
self
::
PLUGIN_NAME
)
$queryBuilder
->
createNamedParameter
(
self
::
PLUGIN_NAME
)
),
),
$queryBuilder
->
expr
()
->
orX
(
$queryBuilder
->
expr
()
->
orX
(
$queryBuilder
->
expr
()
->
eq
(
'sys_language_uid'
,
-
1
),
$queryBuilder
->
expr
()
->
eq
(
'
tt_content.
sys_language_uid'
,
-
1
),
$queryBuilder
->
expr
()
->
eq
(
$queryBuilder
->
expr
()
->
eq
(
'sys_language_uid'
,
'
tt_content.
sys_language_uid'
,
$queryBuilder
->
createNamedParameter
(
$sysLanguageUid
,
Connection
::
PARAM_INT
)
$queryBuilder
->
createNamedParameter
(
$sysLanguageUid
,
Connection
::
PARAM_INT
)
)
)
)
)
...
...
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