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
5e767288
Commit
5e767288
authored
Feb 24, 2017
by
Carsten Rose
Browse files
Save.php: add specific error message for missing slaveId Definition.
parent
30ad9dd8
Changes
2
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/Constants.php
View file @
5e767288
...
...
@@ -158,6 +158,7 @@ const ERROR_MISSING_CONFIG_INI_VALUE = 1070;
const
ERROR_SENDMAIL
=
1071
;
const
ERROR_SENDMAIL_MISSING_VALUE
=
1072
;
const
ERROR_OVERWRITE_RECORD_ID
=
1073
;
const
ERROR_MISSING_SLAVE_ID_DEFINITION
=
1074
;
// Subrecord
const
ERROR_SUBRECORD_MISSING_COLUMN_ID
=
1100
;
...
...
extension/qfq/qfq/Save.php
View file @
5e767288
...
...
@@ -384,6 +384,10 @@ class Save {
$flagUpdateSlaveId
=
false
;
$flagSlaveDeleted
=
false
;
if
(
!
isset
(
$fe
[
FE_SLAVE_ID
]))
{
throw
new
UserFormException
(
"Missing 'slaveId'-definition"
,
ERROR_MISSING_SLAVE_ID_DEFINITION
);
}
// Get the slaveId
$slaveId
=
Support
::
falseEmptyToZero
(
$this
->
evaluate
->
parse
(
$fe
[
FE_SLAVE_ID
]));
// Store the slaveId: it's used and replaced in the update statement.
...
...
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