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
299fc687
Commit
299fc687
authored
Aug 03, 2020
by
Fabian Galinski
😾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUGFIX] The visibility is always true for other tables than pages or tt_content
parent
dc08ee3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
Classes/Element/ElementFactory.php
Classes/Element/ElementFactory.php
+1
-12
No files found.
Classes/Element/ElementFactory.php
View file @
299fc687
...
...
@@ -91,7 +91,7 @@ class ElementFactory {
$element
=
$hookObj
->
getElementForTable
(
$table
,
$row
[
'uid'
],
$row
,
$overlay_ids
);
}
}
elseif
(
isset
(
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'SC_OPTIONS'
][
'languagevisibility'
][
'recordElementSupportedTables'
][
$table
]))
{
$element
=
$this
->
getElement
Instance
(
RecordElement
::
class
,
$row
);
$element
=
GeneralUtility
::
make
Instance
(
RecordElement
::
class
,
$row
,
$table
);
}
else
{
throw
new
TableNotSupportedException
(
$table
.
' not supported '
,
1195039394
);
}
...
...
@@ -102,15 +102,4 @@ class ElementFactory {
return
$element
;
}
/**
* Gets instance depending on TYPO3 version
*
* @param string $name name of the class
* @param array $row row that is used to initialize element instance
* @return Object
*/
private
function
getElementInstance
(
$name
,
$row
)
{
return
GeneralUtility
::
makeInstance
(
$name
,
$row
);
}
}
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