[TYPO3-dev] Hook proposal for alt_doc.php

Bernhard Kraft kraftb at kraftb.at
Sun Jul 9 00:06:45 CEST 2006


David Bruehlmeier wrote:
> Hi Bernhard,
> 
> Thanks for the tip! You are right, the records do not get saved this
> way. But, by setting $id to 0, I do get the following error message:
> 
> "Attempt to modify record '' (tx_myext:0) without permission. Or
> non-existing page."
> 
> The data is checked after the hook for permission and in the function
> checkRecordUpdateAccess(), if $id is not greater than 0, the system
> outputs the mentioned error.

Pass the "$incomingFieldArray" as reference (&) and set it to an empty
array.

I think this will do it without generating an error message.


greets,
Bernhard
-- 
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------
[[ http://think-open.at | Open source company ]]




More information about the TYPO3-dev mailing list