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
2d997d8b
Commit
2d997d8b
authored
Aug 04, 2020
by
Kevin Ditscheid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUGFIX] Fix wrongly checked language overlay in backend service
parent
04a8e380
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Classes/Hook/TceMainHook.php
Classes/Hook/TceMainHook.php
+4
-0
Classes/Service/BackendServices.php
Classes/Service/BackendServices.php
+1
-1
No files found.
Classes/Hook/TceMainHook.php
View file @
2d997d8b
...
...
@@ -274,6 +274,10 @@ class TceMainHook {
* @internal param object $this
*/
public
function
checkRecordUpdateAccess
(
$table
,
$id
,
$data
,
$res
,
$tcemain
):
?int
{
if
(
!
BackendServices
::
isSupportedTable
(
$table
))
{
return
$res
;
}
$queryBuilder
=
GeneralUtility
::
makeInstance
(
ConnectionPool
::
class
)
->
getQueryBuilderForTable
(
$table
);
$queryBuilder
->
getRestrictions
()
->
removeAll
()
->
add
(
GeneralUtility
::
makeInstance
(
DeletedRestriction
::
class
));
$row
=
$queryBuilder
->
select
(
'*'
)
...
...
Classes/Service/BackendServices.php
View file @
2d997d8b
...
...
@@ -113,7 +113,7 @@ class BackendServices extends AbstractServices {
if
(
$tanslationIdField
!==
''
)
{
// if the field which points to the original of the translation is
// not 0 a translation exists and we have an overlay record
$result
=
(
int
)
$row
[
$tanslationIdField
]
[
0
]
!==
0
;
$result
=
$row
[
$tanslationIdField
]
!==
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