* finish task#1412.
This commit is contained in:
@@ -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§ion=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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user