From f8e8d0f5e36dac51dc204a647c4b4098376071dd Mon Sep 17 00:00:00 2001 From: rob Date: Tue, 13 May 2003 15:40:48 +0000 Subject: [PATCH] update to remove references in document_text when document is deleted --- presentation/lookAndFeel/knowledgeTree/documentmanagement/deleteDocumentBL.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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(); -- libgit2 0.21.4