Commit 26b088c2 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Bug #4944 / Delete: broken when using 'tableName' (instead of form)

parent a466ddcc
......@@ -286,6 +286,8 @@ class QuickFormQuery {
$sipFound = true;
$this->formSpec[F_NAME] = '';
$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.
}
// For 'new' record always create a new Browser TAB-uniq (for this current form, nowhere else used) SIP.
......
......@@ -357,7 +357,7 @@ class Dirty {
if ($formMode == FORM_DELETE) {
// Check if the record is timed out
// Check if the lock is timed out
if ($lockTimeout > 0 && $rcRecordDirty[DIRTY_EXPIRE] < date('Y-m-d H:i:s')) {
$this->deleteDirtyRecord($rcRecordDirty[COLUMN_ID]);
......
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