Преглед изворни кода

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 пре 8 година
родитељ
комит
a83c24beec
1 измењених фајлова са 10 додато и 1 уклоњено
  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;}