[TYPO3-irre] record deletion problem
Stephan Petzl
spetzl at gmx.at
Thu Oct 8 10:56:40 CEST 2009
Stephan Petzl schrieb:
> Hi!
>
> I have a gallery record where i can add imagefiles. for each image file
> a image record is created onsave (by a hook[1])
>
> These records are displayed inline in my gallery record and allow to add
> meta infos to each image.
>
> Now i have the problem that when i delete an imagerecord inside of my
> hook (on save), the framework does not like that:
>
> 1: Attempt to modify record '' (tx_gorillary_images:574) without
> permission. Or non-existing page.
>
> I guess the TYPO3 wants to save POST data to a record, which is not
> present anymore...
>
> Any ideas what i could do to hide/prevent this error?
>
> [1] - i use
> $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']
>
>
fixed it!
just use processDatamap_afterAllOperations() instead of
processDatamap_afterDatabaseOperations() for deleting records!
--
Best Regards
Stephan Petzl
http://netrabbit.at
More information about the TYPO3-project-irre
mailing list