Forum OpenACS Development: Response to content_revision deleting

Collapse
Posted by Robert Locke on
Hey there,

I just upgraded to the alpha release and find that I'm also having problems deleting content items.

Basically:

* I create a content item which has a single live/latest revision.
* I then call content_item__delete on said item.
* content_item__delete then calls acs_object__delete on all its revisions (of which there is only 1 in this case, but it doesn't really matter)
* acs_object__delete then deletes the revision from cr_revisions
* however, the trigger on cr_revisions prevents the deletion of the live/latest revision and an error results

Dan: is that the bug you're referring to?

Why did this work in the pre-alpha?  Is the solution to null out the live/latest revision before performing a content_item__delete?

Thanks!