Skip to content
GitLab
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
d42b5711
Commit
d42b5711
authored
Sep 11, 2018
by
Carsten Rose
Browse files
AbtractBuildForm.php: fix problem with subrecords in MultiDB Environment.
parent
06af44fb
Pipeline
#862
passed with stage
in 1 minute and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/AbstractBuildForm.php
View file @
d42b5711
...
...
@@ -2464,6 +2464,7 @@ abstract class AbstractBuildForm {
$hasDragAndDrop
=
false
;
$orderColumn
=
$formElement
[
FE_ORDER_COLUMN
]
??
DND_COLUMN_ORD
;
$dndTable
=
''
;
if
(
isset
(
$formElement
[
FE_DND_TABLE
]))
{
// Table is specified in parameter field
$dndTable
=
$formElement
[
FE_DND_TABLE
];
...
...
@@ -2474,8 +2475,9 @@ abstract class AbstractBuildForm {
ROW_REGULAR
,
[
$formName
]);
if
(
count
(
$form
)
>
0
)
{
$dndTable
=
$form
[
0
][
F_TABLE_NAME
];
}
}
if
(
$dndTable
)
{
$columns
=
$this
->
dbArray
[
$this
->
dbIndex
Qfq
]
->
sql
(
"SHOW COLUMNS FROM
$dndTable
"
);
$columns
=
$this
->
dbArray
[
$this
->
dbIndex
Data
]
->
sql
(
"SHOW COLUMNS FROM
$dndTable
"
);
foreach
(
$columns
as
$column
)
{
if
(
$column
[
'Field'
]
===
$orderColumn
)
{
// DragAndDrop is active if the dndTable has the orderColumn
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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