Forums / Developer / ezcontentobject purge issue for objects with extra information (users binary files etc)

ezcontentobject purge issue for objects with extra information (users binary files etc)

Author Message

Bruce Morrison

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

Bruce Morrison

Monday 24 November 2003 7:23:04 pm

I'm a bit late
http://www.ez.no/developer/ez_publish_3/bug_reports/cleanup_error_in_contentobject_class

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish