Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
7ae9756c
Commit
7ae9756c
authored
Jun 14, 2021
by
Carsten Rose
Browse files
Fixed #12674 / QFQ Function subheader: skip deleted
parent
c500b6c1
Pipeline
#5339
passed with stages
in 4 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Classes/Core/Database/Database.php
View file @
7ae9756c
...
...
@@ -1133,7 +1133,7 @@ class Database {
$column
=
(
is_numeric
(
$uid
))
?
'uid'
:
'subheader'
;
$dbT3
=
$this
->
store
->
getVar
(
SYSTEM_DB_NAME_T3
,
STORE_SYSTEM
);
$sql
=
"SELECT * FROM `
$dbT3
`.`tt_content` WHERE `
$column
` = ?"
;
$sql
=
"SELECT * FROM `
$dbT3
`.`tt_content` WHERE `
$column
` = ?
AND `deleted` = 0 AND `hidden` = 0
"
;
$arr
=
$this
->
sql
(
$sql
,
ROW_EXPECT_1
,
[
$uid
],
'Function "'
.
$column
.
'='
.
$uid
.
'" not found or more than one found.'
);
return
(
$arr
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment