diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/deleteDocumentBL.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/deleteDocumentBL.php index f734e41..684dd1f 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/deleteDocumentBL.php +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/deleteDocumentBL.php @@ -72,11 +72,9 @@ if (checkSession()) { } //remove any document word links that this document may have - Document::removeDocumentWordLinks($fDocumentID); - - //delete all fields associated with the document - Document::deleteDocumentFieldsLinks($fDocumentID); + Document::deleteFromDocumentText($fDocumentID); + // delete the corresponding web document entry $oWebDocument = WebDocument::get(lookupID($default->owl_web_documents_table, "document_id", $fDocumentID)); $oWebDocument->delete();