[TYPO3-mvc] how to not respectEnablefields when passing object to controller action

Thomas Mammitzsch thomas at visualworx.de
Thu Jul 8 11:25:36 CEST 2010


hi,

hmm, i see no difference if i retrieve the value directly from the 
argument or by using $this->request->getArgument, although your approach 
is less code. Or did i get something wrong?

regards, Thomas

Am 08.07.2010 10:44, schrieb Franz Koch:
> Hey,
>
>> its Tx_Extbase_MVC_Controller_Argument::findObjectByUid. I'll make a
>> feature request on forge.
>> As a temporarily workaround i'll remove the argument from my action, get
>> it by $this->request->getArgument and use an own findByUID method in my
>> repository.
>
> you could still keep it as argument of the action, but simply annotate
> it as integer. That's what I'd do in any case, because even if you patch
> the method findObjectByUid to ignore enableFields, you might not want
> them to be disabled in your action for all cases, but only if the user
> has the rights to update/view disabled records.
>



More information about the TYPO3-project-typo3v4mvc mailing list