* Fix a bug for ranzhi getting block form zentao.

This commit is contained in:
daitingting
2017-03-31 10:27:24 +08:00
parent 9f5591d2ea
commit ac3fbbfe27
2 changed files with 13 additions and 12 deletions
+10 -10
View File
@@ -187,14 +187,6 @@ class blockModel extends model
public function getListParams($module = '')
{
$params = new stdclass();
if($module == 'project' or $module == 'product')
{
$params->type['name'] = $this->lang->block->type;
$params->type['options'] = $this->lang->block->typeList->$module;
$params->type['control'] = 'select';
}
$params = $this->onlyNumParams($module, $params);
return json_encode($params);
}
@@ -375,7 +367,11 @@ class blockModel extends model
*/
public function getProductParams($module = '')
{
return $this->getListParams($module);
$params->type['name'] = $this->lang->block->type;
$params->type['options'] = $this->lang->block->typeList->product;
$params->type['control'] = 'select';
return json_encode($this->onlyNumParams($module, $params));
}
/**
@@ -386,7 +382,11 @@ class blockModel extends model
*/
public function getProjectParams($module = '')
{
return $this->getListParams($module);
$params->type['name'] = $this->lang->block->type;
$params->type['options'] = $this->lang->block->typeList->project;
$params->type['control'] = 'select';
return json_encode($this->onlyNumParams($module, $params));
}
/**