Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
5d714a1b
Commit
5d714a1b
authored
Dec 04, 2017
by
Carsten Rose
Browse files
Bug #5056 / Report in Form: filling STORE_RECORD breaks Form Handling
parent
72046a82
Changes
2
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/AbstractBuildForm.php
View file @
5d714a1b
...
...
@@ -486,8 +486,8 @@ abstract class AbstractBuildForm {
}
$storeRecord
=
$this
->
store
->
getStore
(
STORE_RECORD
);
$value
=
$this
->
report
->
process
(
$this
->
bodytextParser
->
process
(
$value
));
$this
->
store
->
setStore
(
STORE_RECORD
,
$storeRecord
,
true
);
$value
=
$this
->
report
->
process
(
$this
->
bodytextParser
->
process
(
$value
)
,
false
);
$this
->
store
->
setStore
(
$storeRecord
,
STORE_RECORD
,
true
);
}
...
...
extension/qfq/qfq/report/Report.php
View file @
5d714a1b
...
...
@@ -83,6 +83,8 @@ class Report {
private
$showDebugInfoFlag
=
false
;
private
$flagFillStoreRecord
=
true
;
/**
* Report constructor.
*
...
...
@@ -167,12 +169,13 @@ class Report {
*
* @return string
*/
public
function
process
(
$bodyText
)
{
public
function
process
(
$bodyText
,
$flagFillStoreRecord
=
true
)
{
//phpUnit Test: clean environment
$this
->
frArray
=
array
();
$this
->
indexArray
=
array
();
$this
->
levelCount
=
0
;
$this
->
flagFillStoreRecord
=
$flagFillStoreRecord
;
// Iteration over Bodytext
$ttLineArray
=
explode
(
"
\n
"
,
$bodyText
);
...
...
@@ -601,7 +604,9 @@ class Report {
}
}
$this
->
store
->
appendToStore
(
STORE_RECORD
,
$assoc
);
if
(
$this
->
flagFillStoreRecord
)
{
$this
->
store
->
appendToStore
(
STORE_RECORD
,
$assoc
);
}
return
(
$content
);
}
...
...
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