[TYPO3-mvc] $this->defaultQuerySettings->setRespectEnableFields(FALSE) - No effect
Daniel Schöne
daniel at schoene.it
Wed Sep 12 21:21:32 CEST 2012
Hi,
is once solved this issue by adding
$this->defaultQuerySettings->setRespectEnableFields(FALSE);
to Tx_Extbase_MVC_Controller_Argument->findObjectByUid method (extbase 1.3).
cheers,
daniel
On 07.09.2012, at 09:35, Daniel Frey <Daniel_Fr at gmx.de> wrote:
> Hi List,
>
> for my extension, I'm dealing a lot with entries that are hidden. Unfortunately I cannot use the default actions to edit, update and delete, because it cannot deal with hidden objects. So I'm trying to set the RespectEnableFields to false for the whole repository, but it has no effect meaning hidden posts are still not found. In my custom repository methods I use $query->getQuerySettings()->setRespectEnableFields(false); which is working fine.
>
> Here's my code for the repositories' initialize Object. Something wrong with that? (Extbase 1.3.3 Typo3 v 4.5.17)
>
>
> public function initializeObject() {
> $this->defaultQuerySettings = $this->objectManager->create('Tx_Extbase_Persistence_Typo3QuerySettings');
> $this->defaultQuerySettings->setRespectEnableFields(FALSE);
> $this->defaultQuerySettings->setRespectStoragePage(FALSE);
> }
>
> Kind Regards,
> Daniel
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>
--
Daniel Schöne
More information about the TYPO3-project-typo3v4mvc
mailing list