Skip to content

Commit

Permalink
Merge branch 'FriendsOfTYPO3:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
BastianBalthasarBux authored Feb 6, 2024
2 parents 554be14 + 95e1d6d commit bbb7cc2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Classes/Command/GeocodeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected function configure()
* @inheritdoc
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$this->getGeocodeService($input->getArgument('key'))->calculateCoordinatesForAllRecordsInTable();
return 0;
Expand Down
8 changes: 6 additions & 2 deletions Classes/Hooks/Tca/Label.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Utility\DebuggerUtility;

/**
* Dynamic label of the address record based on tsconfig
Expand All @@ -30,7 +29,12 @@ public function getAddressLabel(array &$params): void
return;
}

$row = BackendUtility::getRecord('tt_address', (int) $params['row']['uid']);
if (is_numeric($params['row']['uid'])) {
$row = BackendUtility::getRecord('tt_address', (int) $params['row']['uid']);
} else {
$row = $params['row'];
}

$configuration = $this->getConfiguration((int) $row['pid']);
if (!$configuration) {
return;
Expand Down
8 changes: 7 additions & 1 deletion ext_conf_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ backwardsCompatFormat = %1$s %3$s
storeBackwardsCompatName = 1

# cat=basic; type=boolean; label=Name field is read only
readOnlyNameField = 1
readOnlyNameField = 1

# cat=backend; type=text; label=Pattern for validation telephone number in TCA with PHP
telephoneValidationPatternForPhp = /[^\d\+\s\-]/

# cat=backend; type=text; label=Pattern for validation telephone number in TCA with JS
telephoneValidationPatternForJs = /[^\d\+\s\-]/g

0 comments on commit bbb7cc2

Please sign in to comment.