Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
TYPO3
languagevisibility
Commits
c02ff6dd
Commit
c02ff6dd
authored
Aug 20, 2020
by
Kevin Ditscheid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUGFIX] Fix isOverlayRecord check
parent
892c183a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
Classes/Service/BackendServices.php
Classes/Service/BackendServices.php
+8
-3
No files found.
Classes/Service/BackendServices.php
View file @
c02ff6dd
...
...
@@ -109,11 +109,16 @@ class BackendServices extends AbstractServices {
$result
=
FALSE
;
if
(
in_array
(
$table
,
VisibilityService
::
getSupportedTables
(),
TRUE
))
{
$tanslationIdField
=
$GLOBALS
[
'TCA'
][
$table
][
'ctrl'
][
'transOrigPointerField'
];
if
(
$tanslationIdField
!==
''
)
{
$t
r
anslationIdField
=
$GLOBALS
[
'TCA'
][
$table
][
'ctrl'
][
'transOrigPointerField'
];
if
(
$t
r
anslationIdField
!==
''
)
{
// if the field which points to the original of the translation is
// not 0 a translation exists and we have an overlay record
$result
=
$row
[
$tanslationIdField
]
!==
0
;
if
(
is_array
(
$row
[
$translationIdField
]))
{
// somehow the sys_language_uid field could contain 0 => 0
$result
=
(
int
)
$row
[
$translationIdField
][
0
]
!==
0
;
}
else
{
$result
=
(
int
)
$row
[
$translationIdField
]
!==
0
;
}
}
}
...
...
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