Explorar o código

Obsolescence: do not lose external keys pointing to obsolete data

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4786 a333f486-631f-4898-b8df-5754b55c2be0
romainq %!s(int64=8) %!d(string=hai) anos
pai
achega
a83c24beec
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  1. 10 1
      core/dbsearch.class.php

+ 10 - 1
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;}