Hi,

I'm working on an custom application based on nuxeo 5.2.1. In this
application I need to have trash management disabled.

Lets suppose I have the following hierarchical structure:
a
|-b
  |-c

That is a is parent to b which is parent to c.

If I navigate to c and have the default nuxeo page opened for c and then
use the context menu in left tree to delete b nuxeo will break. 

Looking through the code I have seen that when delete is called for b,
there's no action taken to delete any of its children (at least I didn't
find it :) ). So, nuxeo will still try to open the page for c (because
its not deleted - PopupHelper.getCurrentURLAfterDelete), which will
break nuxeo pretty bad due to the missing link in the hierarchy - b.

So the I need to solve 2 problems:
1. don't break nuxeo. That is navigate to the parent of the deleted node
2. actually recursively delete the children of the deleted node so that
we don't end up with garbage in the database.

Any ideas on how to do this would be appreciated

Best regards,
Radu Tentea
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to