* code for bug #21020.

This commit is contained in:
王怡栋
2022-04-18 13:26:25 +08:00
parent 0d0fcb0c2e
commit 323f7366ba
+4 -3
View File
@@ -228,16 +228,17 @@ class block extends control
$blocks = $this->block->getBlockList($module, $type);
$vision = $this->config->vision;
$commonField = 'common';
$section = 'common';
if($module == 'project' and $projectID)
{
$project = $this->loadModel('project')->getByID($projectID);
$commonField = $project->model . 'common';
$project = $this->loadModel('project')->getByID($projectID);
$section = $project->model . 'common';
}
$inited = $this->dao->select('*')->from(TABLE_CONFIG)
->where('module')->eq($module)
->andWhere('owner')->eq($this->app->user->account)
->andWhere('`section`')->eq($section)->fi()
->andWhere('`key`')->eq('blockInited')
->andWhere('vision')->eq($vision)
->fetch('value');