Commit ec5f014c authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Change diff filename and filename inside diff

parent 8e88c694
{
"patches": {
"apache-solr-for-typo3/solr": {
"Do not throw exception for wrong sorting parameter @see https://github.com/TYPO3-Solr/ext-solr/issues/2722": "patches/sorting-field.diff"
"Do not throw exception for wrong sorting parameter @see https://github.com/TYPO3-Solr/ext-solr/issues/2722": "patches/ext_solr_issue_2722.diff"
}
}
}
--- Classes/Domain/Search/ResultSet/Sorting/SortingHelper.php 2020-10-21 10:26:40.000000000 +0200
+++ Classes/Domain/Search/ResultSet/Sorting/SortingHelperNew.php 2020-10-21 10:26:52.000000000 +0200
+++ Classes/Domain/Search/ResultSet/Sorting/SortingHelper.php 2020-10-21 10:26:52.000000000 +0200
@@ -69,12 +69,10 @@
foreach ($sortParameters as $sortParameter) {
list($sortOption, $sortDirection) = explode(' ', $sortParameter);
- if (!in_array($sortOption, $configuredSortingName)) {
- throw new \InvalidArgumentException('No sorting configuration found for option name ' . $sortOption, 1316187644);
+ if (in_array($sortOption, $configuredSortingName)) {
......@@ -14,10 +14,10 @@
- $sortField = $this->configuration[$sortOption . '.']['field'];
- $sortFields[] = $sortField . ' ' . $sortDirection;
}
return implode(', ', $sortFields);
--- Classes/Search/SortingComponent.php 2020-10-21 10:32:58.000000000 +0200
+++ Classes/Search/SortingComponentNew.php 2020-10-21 10:32:58.000000000 +0200
+++ Classes/Search/SortingComponent.php 2020-10-21 10:32:58.000000000 +0200
@@ -100,7 +100,9 @@
/** @var $sortHelper SortingHelper */
$sortHelper = GeneralUtility::makeInstance(SortingHelper::class, $this->searchConfiguration['sorting.']['options.']);
......@@ -28,4 +28,4 @@
+ }
$this->query = $this->queryBuilder->getQuery();
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment