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
26b088c2
Commit
26b088c2
authored
Nov 15, 2017
by
Carsten Rose
Browse files
Bug #4944 / Delete: broken when using 'tableName' (instead of form)
parent
a466ddcc
Changes
2
Show whitespace changes
Inline
Side-by-side
extension/qfq/qfq/QuickFormQuery.php
View file @
26b088c2
...
...
@@ -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.
...
...
extension/qfq/qfq/form/Dirty.php
View file @
26b088c2
...
...
@@ -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
]);
...
...
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