From 0844beca791232d9c6d802626ccb84fdf6cea201 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Fri, 30 Jun 2017 14:06:08 +0000 Subject: [PATCH] Obsolescence: do not lose external keys pointing to obsolete data SVN:trunk[4786] --- core/dbsearch.class.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/core/dbsearch.class.php b/core/dbsearch.class.php index b10a9883e..7f262edb2 100644 --- a/core/dbsearch.class.php +++ b/core/dbsearch.class.php @@ -78,7 +78,16 @@ abstract class DBSearch } public function GetShowObsoleteData() { - return $this->m_bShowObsoleteData; + if ($this->m_bArchiveMode || $this->IsAllDataAllowed()) + { + // Enable obsolete data too! + $bRet = true; + } + else + { + $bRet = $this->m_bShowObsoleteData; + } + return $bRet; } public function NoContextParameters() {$this->m_bNoContextParameters = true;}