mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Archives: regression (warning during the setup)
SVN:trunk[4693]
This commit is contained in:
@@ -54,9 +54,12 @@ class ajax_page extends WebPage implements iTabbedPage
|
||||
$this->sContentDisposition = 'inline';
|
||||
$this->m_sMenu = "";
|
||||
|
||||
$bArchiveMode = utils::IsArchiveMode();
|
||||
DBSearch::SetArchiveModeDefault($bArchiveMode);
|
||||
if ($bArchiveMode) MetaModel::DBSetReadOnly();
|
||||
if (class_exists('DBSearch')) // This class does not exist in the contect of the setup page
|
||||
{
|
||||
$bArchiveMode = utils::IsArchiveMode();
|
||||
DBSearch::SetArchiveModeDefault($bArchiveMode);
|
||||
if ($bArchiveMode) MetaModel::DBSetReadOnly();
|
||||
}
|
||||
}
|
||||
|
||||
public function AddTabContainer($sTabContainer, $sPrefix = '')
|
||||
|
||||
Reference in New Issue
Block a user