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
f65b2d6a
Commit
f65b2d6a
authored
Aug 07, 2017
by
Carsten Rose
Browse files
Fix problem that a missing GET parameter 'recordHashMd5' always trigger 'record modified'
parent
b084998a
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/form/Dirty.php
View file @
f65b2d6a
...
...
@@ -242,6 +242,10 @@ class Dirty {
*/
private
function
isRecordModified
(
$tableName
,
$recordId
,
$recordHashMd5
,
&
$rcMd5
)
{
if
(
$recordHashMd5
==
''
)
{
return
false
;
// If there is no recordHashMd5, the check is not possible. Always return 'not modified' (=ok)
}
$record
=
$this
->
db
->
sql
(
"SELECT * FROM
$tableName
WHERE id=?"
,
ROW_EXPECT_1
,
[
$recordId
],
"Record to lock not found."
);
$rcMd5
=
OnArray
::
getMd5
(
$record
);
...
...
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