From 244b0d9b12d783244a55b42a8ab7727cb48fab4d Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Wed, 5 Sep 2018 13:42:13 +0200 Subject: [PATCH 1/2] TASK: Refactor column value in own method This allows to replace this single part of code in own implementations. --- .../Index/TcaIndexer/RelationResolver.php | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/Classes/Domain/Index/TcaIndexer/RelationResolver.php b/Classes/Domain/Index/TcaIndexer/RelationResolver.php index ae10f68..e992577 100644 --- a/Classes/Domain/Index/TcaIndexer/RelationResolver.php +++ b/Classes/Domain/Index/TcaIndexer/RelationResolver.php @@ -41,14 +41,7 @@ class RelationResolver implements Singleton continue; } - $record[$column] = GeneralUtility::makeInstance($this->getUtilityForMode()) - ::getProcessedValueExtra( - $service->getTableName(), - $column, - $record[$column], - 0, - $record['uid'] - ); + $record[$column] = $this->getColumnValue($record, $column, $service); try { $config = $service->getColumnConfig($column); @@ -107,4 +100,16 @@ class RelationResolver implements Singleton return FrontendUtility::class; } + + protected function getColumnValue(array $record, string $column, TcaTableServiceInterface $service): string + { + $utility = GeneralUtility::makeInstance($this->getUtilityForMode()); + return $utility::getProcessedValueExtra( + $service->getTableName(), + $column, + $record[$column], + 0, + $record['uid'] + ) ?? ''; + } } From 08557813c7d6080f2547c86007d14ccf7b524a62 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Wed, 5 Sep 2018 14:01:53 +0200 Subject: [PATCH 2/2] TASK: Raise version number to 0.0.6 --- Documentation/source/conf.py | 6 +++--- Documentation/source/installation.rst | 2 +- ext_emconf.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/source/conf.py b/Documentation/source/conf.py index 054c7b8..2e2632b 100644 --- a/Documentation/source/conf.py +++ b/Documentation/source/conf.py @@ -59,9 +59,9 @@ author = u'Daniel Siepmann' # built documents. # # The short X.Y version. -version = u'0.0.4' +version = u'0.0.6' # The full version, including alpha/beta/rc tags. -release = u'0.0.4' +release = u'0.0.6' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # @@ -132,7 +132,7 @@ html_theme_options = { # The name for this set of Sphinx documents. # " v documentation" by default. -#html_title = u'TYPO3 Extension search_core v0.0.4' +#html_title = u'TYPO3 Extension search_core v0.0.6' # A shorter title for the navigation bar. Default is the same as html_title. #html_short_title = None diff --git a/Documentation/source/installation.rst b/Documentation/source/installation.rst index fc9b479..acd56d7 100644 --- a/Documentation/source/installation.rst +++ b/Documentation/source/installation.rst @@ -9,7 +9,7 @@ Composer The extension can be installed through composer:: - composer require "codappix/search_core" "~0.0.4" + composer require "codappix/search_core" "~0.0.6" Note that you have to allow unstable packages: diff --git a/ext_emconf.php b/ext_emconf.php index b0b5e65..a21c748 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -18,7 +18,7 @@ $EM_CONF[$_EXTKEY] = [ ], ], 'state' => 'beta', - 'version' => '0.0.4', + 'version' => '0.0.6', 'author' => 'Daniel Siepmann', 'author_email' => 'coding@daniel-siepmann.de', ];