[BUGFIX] Error during installation when filemetadata is not installed 73/58773/3
authorStanislas Rolland <typo3@sjbr.ca>
Sun, 28 Oct 2018 23:39:19 +0000 (19:39 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Thu, 1 Nov 2018 19:43:37 +0000 (20:43 +0100)
TCA override should check that extension filemetadata is installed.

Resolves: #86784
Change-Id: Ie980ea8c5e7b9eebc9ec9c85df6ab4212ea17edd
Reviewed-on: https://review.typo3.org/58773
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
ChangeLog
Configuration/TCA/Overrides/sys_file_metadata.php

index fd1b587..168e8d6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2018-10-28 Stanislas Rolland  <typo3(arobas)sjbr.ca>
+       * Resolves #86784: Error during installation when extension filemetadata is not installed
+
 2018-10-24 Stanislas Rolland  <typo3(arobas)sjbr.ca>
        * Resolves #86736: Removing all selectable user groups was not possible
        * Update version to 5.1.1
index 31afea9..8367600 100644 (file)
@@ -1,4 +1,5 @@
 <?php
 defined('TYPO3_MODE') or die();
-
-$GLOBALS['TCA']['sys_file_metadata']['columns']['fe_groups']['config']['foreign_table_where'] = ' AND fe_groups.sys_language_uid IN (-1,0) ORDER BY fe_groups.title';
\ No newline at end of file
+if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('filemetadata')) {
+    $GLOBALS['TCA']['sys_file_metadata']['columns']['fe_groups']['config']['foreign_table_where'] = ' AND fe_groups.sys_language_uid IN (-1,0) ORDER BY fe_groups.title';
+}
\ No newline at end of file