Skip to content
Snippets Groups Projects
Commit b74e02c3 authored by Fabian Galinski's avatar Fabian Galinski :pouting_cat:
Browse files

[BUGFIX] The title generation isn't working within workspaces

parent b9922da8
No related branches found
No related tags found
No related merge requests found
...@@ -72,15 +72,32 @@ class TcaProvider implements SingletonInterface { ...@@ -72,15 +72,32 @@ class TcaProvider implements SingletonInterface {
$pagesIdentity = (int) $identity; $pagesIdentity = (int) $identity;
if ($table === 'pages_language_overlay') { if ($table === 'pages_language_overlay') {
$translationRow = $database->exec_SELECTgetSingleRow( $translationRow = $database->exec_SELECTgetSingleRow(
'pid, subtitle', 'pages_language_overlay', 'uid = ' . (int) $identity 'pid, subtitle, t3ver_oid', 'pages_language_overlay', 'uid = ' . (int) $identity
); );
$workspaceOriginalId = (int) $translationRow['t3ver_oid'];
if ($workspaceOriginalId > 0) {
$translationRow = $database->exec_SELECTgetSingleRow(
'pid, subtitle, t3ver_oid', 'pages_language_overlay', 'uid = ' . $workspaceOriginalId
);
}
$pagesIdentity = (int) $translationRow['pid']; $pagesIdentity = (int) $translationRow['pid'];
} }
$row = $database->exec_SELECTgetSingleRow( $row = $database->exec_SELECTgetSingleRow(
'doktype, subtitle, lastUpdated, tx_sgnews_highlighted', 'pages', 'uid = ' . $pagesIdentity 'doktype, subtitle, lastUpdated, tx_sgnews_highlighted, t3ver_oid', 'pages', 'uid = ' .
$pagesIdentity
); );
$workspaceOriginalId = (int) $row['t3ver_oid'];
if ($workspaceOriginalId > 0) {
$row = $database->exec_SELECTgetSingleRow(
'doktype, subtitle, lastUpdated, tx_sgnews_highlighted, t3ver_oid', 'pages', 'uid = ' .
$workspaceOriginalId
);
}
// only articles // only articles
$row['doktype'] = (int) $row['doktype']; $row['doktype'] = (int) $row['doktype'];
if (!is_array($row) || !count($row) || !in_array($row['doktype'], [116])) { if (!is_array($row) || !count($row) || !in_array($row['doktype'], [116])) {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"license": [ "license": [
"GPL-2.0+" "GPL-2.0+"
], ],
"version": "3.9.0", "version": "3.9.1",
"support": { "support": {
}, },
"repositories": [ "repositories": [
......
...@@ -19,7 +19,7 @@ $EM_CONF[$_EXTKEY] = [ ...@@ -19,7 +19,7 @@ $EM_CONF[$_EXTKEY] = [
'modify_tables' => '', 'modify_tables' => '',
'clearCacheOnLoad' => 0, 'clearCacheOnLoad' => 0,
'lockType' => '', 'lockType' => '',
'version' => '3.9.0', 'version' => '3.9.1',
'constraints' => [ 'constraints' => [
'depends' => [ 'depends' => [
'typo3' => '7.6.0-8.7.99', 'typo3' => '7.6.0-8.7.99',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment