Skip to content

Commit

Permalink
[TASK] Use "unique" in slug eval as default to prevent initial errors
Browse files Browse the repository at this point in the history
  • Loading branch information
featdd committed May 17, 2020
1 parent 15ddec7 commit 0e88e32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function () {
\TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationExtensionNotConfiguredException |
\TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationPathDoesNotExistException $exception
) {
$termSlugEvaluation = 'uniqueInSite';
$termSlugEvaluation = 'unique';
}

$GLOBALS['TCA'][\Featdd\DpnGlossary\Domain\Model\Term::TABLE]['columns']['url_segment']['config']['eval'] = $termSlugEvaluation;
Expand Down
4 changes: 2 additions & 2 deletions ext_conf_template.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# cat=Settings/enable; type=options[LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:extensionsettings.term_slug_evaluation_type.unique_in_site=uniqueInSite,LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:extensionsettings.term_slug_evaluation_type.unique_in_instance=unique]; label=LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:extensionsettings.term_slug_evaluation_type
termSlugEvaluation = uniqueInSite
# cat=Settings/enable; type=options[LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:extensionsettings.term_slug_evaluation_type.unique_in_instance=unique,LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:extensionsettings.term_slug_evaluation_type.unique_in_site=uniqueInSite]; label=LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:extensionsettings.term_slug_evaluation_type
termSlugEvaluation = unique

0 comments on commit 0e88e32

Please sign in to comment.