Commit 20b2b2c8 authored by Carsten  Rose's avatar 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
...@@ -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 implementing 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 &&
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment