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
bdfaee6e
Commit
bdfaee6e
authored
Nov 30, 2019
by
Carsten Rose
Browse files
Fixes #9424: modeSql: skip if it starts with '#'
parent
ef07e9f1
Pipeline
#2821
passed with stages
in 2 minutes and 43 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
extension/Classes/Core/Save.php
View file @
bdfaee6e
...
...
@@ -570,12 +570,11 @@ class Save {
$this
->
store
->
setVar
(
SYSTEM_FORM_ELEMENT
,
"Column: "
.
$formElement
[
FE_NAME
],
STORE_SYSTEM
);
if
(
empty
(
$formElement
[
FE_MODE_SQL
]))
{
$mode
=
$formElement
[
FE_MODE
];
}
else
{
$mode
=
$this
->
evaluate
->
parse
(
$formElement
[
FE_MODE_SQL
]);
$this
->
feSpecNative
[
$key
][
FE_MODE_SQL
]
=
$mode
;
}
// Normalize FE_MODE
$mode
=
Support
::
handleEscapeSpaceComment
(
$formElement
[
FE_MODE_SQL
]);
$mode
=
empty
(
$mode
)
?
$formElement
[
FE_MODE
]
:
$this
->
evaluate
->
parse
(
$mode
);
$this
->
feSpecNative
[
$key
][
FE_MODE
]
=
$formElement
[
FE_MODE
]
=
$mode
;
$this
->
feSpecNative
[
$key
][
FE_MODE_SQL
]
=
$formElement
[
FE_MODE_SQL
]
=
''
;
if
(
isset
(
$formElement
[
FE_ACCEPT_ZERO_AS_REQUIRED
])
&&
$formElement
[
FE_ACCEPT_ZERO_AS_REQUIRED
]
!=
'0'
&&
isset
(
$clientValues
[
$formElement
[
FE_NAME
]])
&&
$clientValues
[
$formElement
[
FE_NAME
]]
==
'0'
)
{
...
...
@@ -1211,4 +1210,5 @@ class Save {
return
$slaveId
;
}
}
\ No newline at end of file
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