Skip to content
GitLab
Menu
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
ebae6839
Commit
ebae6839
authored
Mar 21, 2021
by
Carsten Rose
Browse files
Refs #11998 - remove urlParam from getBodyText ... not necessary here
parent
dfdd9a07
Pipeline
#5058
passed with stages
in 3 minutes and 37 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
extension/Classes/Core/Database/Database.php
View file @
ebae6839
...
...
@@ -1112,28 +1112,18 @@ class Database {
}
/**
* Load tt-content record with subheader=$uid or uid=$uid (depending if $uid is numeric).
* It's important that the current DB class has access to the Typo3 DB.
*
* @param $uid
* @param array $urlParam
* @return
string
* @return
array // The full T3 tt-content record.
* @throws \CodeException
* @throws \DbException
* @throws \DownloadException
* @throws \PhpOffice\PhpSpreadsheet\Exception
* @throws \PhpOffice\PhpSpreadsheet\Reader\Exception
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
* @throws \Twig\Error\LoaderError
* @throws \Twig\Error\RuntimeError
* @throws \Twig\Error\SyntaxError
* @throws \UserFormException
* @throws \UserReportException
*/
public
function
getBodyText
(
$uid
,
array
$urlParam
=
array
())
{
// Copy $urlParam to STORE_SIP
foreach
(
$urlParam
as
$key
=>
$paramValue
)
{
$this
->
store
->
setVar
(
$key
,
$paramValue
,
STORE_SIP
);
}
public
function
getBodyText
(
$uid
)
{
$column
=
(
is_numeric
(
$uid
))
?
'uid'
:
'subheader'
;
$dbT3
=
$this
->
store
->
getVar
(
SYSTEM_DB_NAME_T3
,
STORE_SYSTEM
);
...
...
extension/Classes/Core/Report/Download.php
View file @
ebae6839
...
...
@@ -370,7 +370,12 @@ class Download {
* @throws \UserReportException
*/
private
function
getEvaluatedBodytext
(
$uid
,
$urlParam
)
{
$bodyTextArr
=
$this
->
db
->
getBodytext
(
$uid
,
$urlParam
);
$bodyTextArr
=
$this
->
db
->
getBodytext
(
$uid
);
// Copy $urlParam to STORE_SIP
foreach
(
$urlParam
as
$key
=>
$paramValue
)
{
$this
->
store
->
setVar
(
$key
,
$paramValue
,
STORE_SIP
);
}
$qfq
=
new
QuickFormQuery
(
$bodyTextArr
,
false
,
false
);
return
$qfq
->
process
();
...
...
Write
Preview
Supports
Markdown
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