Skip to content
Snippets Groups Projects

B7903 Delete mit table= als parameter funktioniert nicht mehr.

Merged Carsten Rose requested to merge B7903DeleteWithTable into master
1 file
+ 7
2
Compare changes
  • Side-by-side
  • Inline
@@ -348,6 +348,7 @@ class QuickFormQuery {
$data = '';
$foundInStore = '';
$flagApiStructureReGroup = true;
$formModeNew = '';
$recordId = $this->store->getVar(SIP_RECORD_ID, STORE_SIP . STORE_TYPO3 . STORE_CLIENT . STORE_ZERO);
$this->setParameterLanguageFieldName();
@@ -360,6 +361,7 @@ class QuickFormQuery {
if ($formName === false) {
switch ($formMode) {
case FORM_DELETE:
$formModeNew = FORM_DELETE;
break;
case FORM_DRAG_AND_DROP:
throw new CodeException('Missing form in SIP', ERROR_MISSING_FORM);
@@ -369,7 +371,9 @@ class QuickFormQuery {
}
// Check 'session expire' happens quite late, cause it can be configured per form.
Session::checkSessionExpired($this->formSpec[F_SESSION_TIMEOUT_SECONDS]);
if ($formName !== false) {
Session::checkSessionExpired($this->formSpec[F_SESSION_TIMEOUT_SECONDS]);
}
// Fill STORE_FORM: might need Form.fillStoreVar={{!SELECT ...}}) to provide STORE_VAR - therefore the FORM-definition should already been processed. #8058
switch ($formMode) {
@@ -398,6 +402,7 @@ class QuickFormQuery {
$this->formSpec[F_TABLE_NAME] = $table;
$this->formSpec[F_RECORD_LOCK_TIMEOUT_SECONDS] = 1; // just indicate a timeout, the exact timeout is stored in the dirty record.
$this->formSpec[F_DIRTY_MODE] = DIRTY_MODE_EXCLUSIVE; // just set a mode,, the exact mode is stored in the dirty record.
$this->formSpec[F_PRIMARY_KEY] = F_PRIMARY_KEY_DEFAULT;
$tmpDbIndexData = $this->store->getVar(PARAM_DB_INDEX_DATA, STORE_SIP);
if (!empty($tmpDbIndexData)) {
@@ -419,7 +424,7 @@ class QuickFormQuery {
}
// Fill STORE_BEFORE
if ($this->store->getVar($this->formSpec[F_PRIMARY_KEY], STORE_BEFORE) === false) {
if ($formName !== false && $this->store->getVar($this->formSpec[F_PRIMARY_KEY], STORE_BEFORE) === false) {
$this->store->fillStoreWithRecord($this->formSpec[F_TABLE_NAME], $recordId,
$this->dbArray[$this->dbIndexData], $this->formSpec[F_PRIMARY_KEY], STORE_BEFORE);
}
Loading