diff --git a/Classes/Controller/PluginController.php b/Classes/Controller/PluginController.php index fd24142..6521e17 100644 --- a/Classes/Controller/PluginController.php +++ b/Classes/Controller/PluginController.php @@ -327,7 +327,15 @@ private function extractGroup($record_ids) $records = []; foreach ($record_ids as $table => $items) { $tc = $tables[$table] ?? []; - $connection = $this->connectionPool->getConnectionForTable($table); + $connection = $this->connectionPool + ->getConnectionForTable($table) + ->getSchemaManager() + ->tablesExist([$table]); + + // table seems not available --> break to avoid exceptions + if ($connection === false) { + break; + } foreach ($items as $item) { $item = intval($item); diff --git a/Classes/Div.php b/Classes/Div.php index da06396..b1b0bf1 100644 --- a/Classes/Div.php +++ b/Classes/Div.php @@ -520,7 +520,7 @@ public static function getTableConfig($table = false) ] ]; - // load configuration for tt_address only if extension is loaded + // load configuration for calendarize only if extension is loaded if (ExtensionManagementUtility::isLoaded('calendarize')) { $tables['tx_calendarize_domain_model_event'] = [ 'FORMAT' => '%01.6f', @@ -561,16 +561,4 @@ protected static function getLogger() return $loggerManager->getLogger(static::class); } - - - public function isExtensionLoaded($params = []) - { - $isLoaded = false; - - if ( ExtensionManagementUtility::isLoaded('tt_address') ) { - $isLoaded = true; - } - - return $isLoaded; - } } diff --git a/Configuration/Flexform/flexform_basic.xml b/Configuration/Flexform/flexform_basic.xml index 7db3f45..86ae8e4 100644 --- a/Configuration/Flexform/flexform_basic.xml +++ b/Configuration/Flexform/flexform_basic.xml @@ -13,10 +13,11 @@ + LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.marker.description group db - fe_groups,fe_users,pages,sys_category,tx_odsosm_track,tx_odsosm_vector,tt_address,tx_calendarize_domain_model_event + fe_groups,fe_users,pages,sys_category,tx_odsosm_track,tx_odsosm_vector,* 5 0 9999 @@ -303,11 +304,13 @@ + LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.marker_popup_intial.description FIELD:show_popups:IN:1,3 group db - fe_users,tt_address + fe_users,* + 1 1 0 1 diff --git a/Configuration/TCA/Overrides/tt_content.php b/Configuration/TCA/Overrides/tt_content.php index 8dbb16b..3b19967 100644 --- a/Configuration/TCA/Overrides/tt_content.php +++ b/Configuration/TCA/Overrides/tt_content.php @@ -23,21 +23,3 @@ $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['ods_osm_pi1'] = 'pi_flexform'; $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['ods_osm_pi1'] = 'layout,select_key,pages,recursive'; - -// Avoid PHP 8.1 errors due to not available index if extensions are not installed -if (! ExtensionManagementUtility::isLoaded('tt_address')) { - $GLOBALS['TCA']['tt_address'] = [ - 'ctrl' => [ - 'title' => '', - 'iconfile' => 'EXT:ods_osm/Resources/Public/Icons/osm.png' - ] - ]; -} -if (! ExtensionManagementUtility::isLoaded('calendarize')) { - $GLOBALS['TCA']['tx_calendarize_domain_model_event'] = [ - 'ctrl' => [ - 'title' => '', - 'iconfile' => 'EXT:ods_osm/Resources/Public/Icons/osm.png' - ] - ]; -} diff --git a/Resources/Private/Language/de.locallang_db.xlf b/Resources/Private/Language/de.locallang_db.xlf index c1e9573..a537b41 100644 --- a/Resources/Private/Language/de.locallang_db.xlf +++ b/Resources/Private/Language/de.locallang_db.xlf @@ -58,9 +58,13 @@ - + + + + + @@ -118,7 +122,7 @@ - + diff --git a/Resources/Private/Language/locallang_db.xlf b/Resources/Private/Language/locallang_db.xlf index f081e8a..6ef75f5 100644 --- a/Resources/Private/Language/locallang_db.xlf +++ b/Resources/Private/Language/locallang_db.xlf @@ -40,7 +40,10 @@ Cluster markers - Marker to show + Records to show + + + Select marker, track or vector records to show on the map. Show this marker's popup initially diff --git a/ext_tables.sql b/ext_tables.sql index 6fd1602..6592ef6 100644 --- a/ext_tables.sql +++ b/ext_tables.sql @@ -21,7 +21,7 @@ CREATE TABLE sys_category ( ); -- --- Table structure for table 'fe_users' +-- Table structure for table 'tx_calendarize_domain_model_event' -- CREATE TABLE tx_calendarize_domain_model_event ( tx_odsosm_lon decimal(9,6) NOT NULL DEFAULT '0.000000',