Commit dfc64af9 authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen

Merge branch '476-votes-on-list-do-not-correspond-to-detail' into 'develop'

Resolve "Votes on list do not correspond to detail"

Closes #476

See merge request !586
parents 2bded21e 9166a4b0
Pipeline #9773 passed with stages
in 4 minutes and 25 seconds
......@@ -14,6 +14,9 @@ namespace T3o\TerFe2\Domain\Repository;
* The TYPO3 project - inspiring people to share!
*/
use ApacheSolrForTypo3\Solr\IndexQueue\Queue;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
* Repository for \T3o\TerFe2\Domain\Model\Extension
*/
......@@ -201,4 +204,18 @@ class ExtensionRepository extends \T3o\TerFe2\Domain\Repository\AbstractReposito
return $query->execute();
}
/**
* Add update to solr index for any changes on that object
*/
public function update($modifiedObject): void
{
parent::update($modifiedObject);
GeneralUtility::makeInstance(Queue::class)->updateItem(
'ter_extension',
$modifiedObject->getUid(),
time()
);
}
}
Markdown is supported
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