Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
863b31c8
Commit
863b31c8
authored
Nov 30, 2019
by
Carsten Rose
Browse files
Merge branch 'B9424modeSqlComment' into 'master'
Fixes #9424: modeSql: skip if it starts with '#' See merge request
!211
parents
ef07e9f1
bdfaee6e
Pipeline
#2822
passed with stages
in 2 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Classes/Core/Save.php
View file @
863b31c8
...
...
@@ -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
Markdown
is supported
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