DocumentFolder - delete parent folder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wtconseil
    Active Community Member
    • Apr 2015
    • 335

    DocumentFolder - delete parent folder

    Hi
    I have a top-level folder with many sub-folder.
    in these sub-folders, i put all my documents

    When i delete the top-level DocumentFolder, the sub-folders are not deleted (and documents also not deleted).
    I think this is the expected behaviour for EspoCRM ?

    Is there an easy way to synchronize sub-folder delete + related documents delete?
    or should i implement that with hooks ?

    Thanks
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello
    It doesn't delete sub-folders and documents recursively. If you need this, yes, you have to implement this with hooks.

    Comment

    • wtconseil
      Active Community Member
      • Apr 2015
      • 335

      #3
      does somebody have already written that code for now ?
      If not, i will do it and share it here
      Thanks Tanya for your quick answer

      Comment

      Working...