Merge pull request #78 from Codappix/feature/small-improvements

Feature: Small improvements
This commit is contained in:
Daniel Siepmann 2017-08-15 08:08:10 +02:00 committed by GitHub
commit ef7c1b680c
2 changed files with 8 additions and 8 deletions

View file

@ -61,7 +61,10 @@ class DocumentFactory implements Singleton
$identifier = $document['search_identifier']; $identifier = $document['search_identifier'];
unset($document['search_identifier']); unset($document['search_identifier']);
$this->logger->debug('Convert document to document', [$identifier, $document]); $this->logger->debug(
sprintf('Convert %s %u to document.', $documentType, $identifier),
[$identifier, $document]
);
return new \Elastica\Document($identifier, $document); return new \Elastica\Document($identifier, $document);
} }

View file

@ -20,13 +20,10 @@ namespace Codappix\SearchCore\Domain\Index\TcaIndexer;
* 02110-1301, USA. * 02110-1301, USA.
*/ */
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\SingletonInterface as Singleton;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Utility\LocalizationUtility;
use TYPO3\CMS\Backend\Form\FormDataCompiler; use TYPO3\CMS\Backend\Form\FormDataCompiler;
use TYPO3\CMS\Backend\Form\FormDataGroup\TcaDatabaseRecord; use TYPO3\CMS\Backend\Form\FormDataGroup\TcaDatabaseRecord;
use TYPO3\CMS\Core\SingletonInterface as Singleton;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/** /**
* Resolves relations from TCA using TCA. * Resolves relations from TCA using TCA.
@ -81,7 +78,7 @@ class RelationResolver implements Singleton
protected function resolveValue($value, array $tcaColumn) protected function resolveValue($value, array $tcaColumn)
{ {
if ($value === '' || $value === '0') { if ($value === '' || $value === '0') {
return ''; return [];
} }
if ($tcaColumn['config']['type'] === 'select') { if ($tcaColumn['config']['type'] === 'select') {
return $this->resolveSelectValue($value, $tcaColumn); return $this->resolveSelectValue($value, $tcaColumn);
@ -93,7 +90,7 @@ class RelationResolver implements Singleton
return $this->resolveInlineValue($tcaColumn); return $this->resolveInlineValue($tcaColumn);
} }
return ''; return [];
} }
/** /**