Commit b4c2e0ed7954ce30fb5054d05a34763c659c7b05
1 parent
c2e95590
Added functionality to remove document_word_link entries when a document is deleted
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1613 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
0 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/deleteDocumentBL.php
| ... | ... | @@ -68,6 +68,9 @@ if (checkSession()) { |
| 68 | 68 | } else { |
| 69 | 69 | $default->log->error("deleteDocumentBL.php couldn't remove document subscriptions"); |
| 70 | 70 | } |
| 71 | + | |
| 72 | + //remove any document word links that this document may have | |
| 73 | + Document::removeDocumentWordLinks($fDocumentID); | |
| 71 | 74 | |
| 72 | 75 | // redirect to the browse folder page |
| 73 | 76 | redirect("$default->rootUrl/control.php?action=browse&fFolderID=" . $oDocument->getFolderID()); | ... | ... |