Monday 24 November 2003 7:19:47 pm
Hi all While creating a custom datatype I found that the deleteStoredObjectAttribute method was not being called when the object was removed from the trash. Further investigation has shown that this is due to Line 904 $contentobjectAttributes =& $contentobject->attribute( 'contentobject_attributes' ); being commented out and replaced with $contentobjectAttributes =& $contentobject->contentObjectAttributes( true, null, null, false, true ); The latter returns an empty array and results in deleteStoredObjectAttribute not being called for any contentObjectAttributes. This means that the cleanup for datatypes with 'extra' information such as links,users, binary files etc is not completed. Swapping these lines back fixes this issue.
This change seems to have been introduced in revision 3851, but there is no log entry to detail why. http://pubsvn.ez.no/viewcvs/ezp//trunk/kernel/classes/ezcontentobject.php?rev=3851&view=markup
Cheers
Bruce http://www.designit.com.au/
My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish
|