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
20b2b2c8
Commit
20b2b2c8
authored
Aug 07, 2017
by
Carsten Rose
Browse files
#3980 / Client: Bei Form Submit den Status 'submit_reason=save|save,close' mitsenden
Fixed broken implementation on server side.
parent
f65b2d6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/QuickFormQuery.php
View file @
20b2b2c8
...
@@ -172,7 +172,7 @@ class QuickFormQuery {
...
@@ -172,7 +172,7 @@ class QuickFormQuery {
$forwardPage
=
store
::
getSipInstance
()
->
queryStringToSip
(
$forwardPage
,
RETURN_URL
);
$forwardPage
=
store
::
getSipInstance
()
->
queryStringToSip
(
$forwardPage
,
RETURN_URL
);
// F_FORWARD_MODE_URL_SIP is not defined in API PROTOCOL. At the moment it's only used for 'copyForm'.
// F_FORWARD_MODE_URL_SIP is not defined in API PROTOCOL. At the moment it's only used for 'copyForm'.
// 'copyForm' behaves better if the page is not in history.
// 'copyForm' behaves better if the page is not in history.
// An option for better implenting would be to separate SKIP History from ForwardMode. For API, it can be combined again.
// An option for better imple
me
nting would be to separate SKIP History from ForwardMode. For API, it can be combined again.
$this
->
formSpec
[
F_FORWARD_MODE
]
=
F_FORWARD_MODE_URL_SKIP_HISTORY
;
$this
->
formSpec
[
F_FORWARD_MODE
]
=
F_FORWARD_MODE_URL_SKIP_HISTORY
;
}
}
...
@@ -364,7 +364,7 @@ class QuickFormQuery {
...
@@ -364,7 +364,7 @@ class QuickFormQuery {
$getJson
=
true
;
$getJson
=
true
;
// Retrieve current STORE_SIP.
// Retrieve current STORE_SIP.
$sipArray
=
$this
->
store
->
getStore
(
STORE_SIP
);
$sipArray
=
$this
->
store
->
getStore
(
STORE_SIP
);
if
(
$sipArray
[
SIP_RECORD_ID
]
==
0
&&
API_SUBMIT_REASON_SAVE
==
$this
->
store
->
getVar
(
API_SUBMIT_REASON
.
':CE:alnumx'
))
{
if
(
$sipArray
[
SIP_RECORD_ID
]
==
0
&&
API_SUBMIT_REASON_SAVE
==
$this
->
store
->
getVar
(
API_SUBMIT_REASON
,
STORE_CLIENT
.
STORE_EMPTY
,
SANITIZE_ALLOW_ALNUMX
))
{
// if ($sipArray[SIP_RECORD_ID] == 0 ) {
// if ($sipArray[SIP_RECORD_ID] == 0 ) {
if
(
$this
->
formSpec
[
F_FORWARD_MODE
]
!==
F_FORWARD_MODE_URL
&&
if
(
$this
->
formSpec
[
F_FORWARD_MODE
]
!==
F_FORWARD_MODE_URL
&&
...
...
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