* finish task#1412.

This commit is contained in:
iamazhi
2013-08-29 16:35:31 +08:00
parent 04daf5979f
commit fa54dff413
8 changed files with 0 additions and 99 deletions
-24
View File
@@ -83,7 +83,6 @@ class upgradeModel extends model
$this->execSQL($this->getUpgradeFile('4.0'));
case '4_0_1':
$this->execSQL($this->getUpgradeFile('4.0.1'));
$this->processFlow();
$this->addPriv4_0_1();
case '4_1':
$this->execSQL($this->getUpgradeFile('4.1'));
@@ -627,29 +626,6 @@ class upgradeModel extends model
}
}
/**
* Process flow.
*
* @access public
* @return void
*/
public function processFlow()
{
/* First delete all flow records. */
$this->setting->deleteItems('owner=system&module=common&section=global&key=flow');
/* Search the extension table to check zentaotest, zentaotask, zentaostory exists or not. */
$flow = 'full';
$extension = $this->dao->select('code')->from(TABLE_EXTENSION)
->where('code')->in('zentaotest,zentaotask,zentaostory')
->andWhere('status')->eq('installed')
->fetch('code');
if($extension) $flow = 'only' . ucfirst(str_replace('zentao', '', $extension));
/* Update database again. */
$this->setting->setItem('system.common.global.flow', $flow, 0);
}
/**
* Add priv for version 4.0.1
*