Merge branch 'liyuchun_fixbug' into 'master'
* Fix bug #16895,20941,20942. See merge request easycorp/zentaopms!2561
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* The control file of dev module of ZenTaoPMS.
|
||||
*
|
||||
* @copyright Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
|
||||
* @author chunsheng wang <chunsheng@cnezsoft.com>
|
||||
* @author chunsheng wang <chunsheng@cnezsoft.com>
|
||||
* @package
|
||||
* @uses control
|
||||
* @license LGPL
|
||||
@@ -54,7 +54,7 @@ class dev extends control
|
||||
|
||||
/**
|
||||
* Editor.
|
||||
*
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
@@ -70,7 +70,7 @@ class dev extends control
|
||||
|
||||
/**
|
||||
* Translate.
|
||||
*
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
|
||||
@@ -3,7 +3,7 @@ class devModel extends model
|
||||
{
|
||||
/**
|
||||
* Get All tables.
|
||||
*
|
||||
*
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
@@ -30,8 +30,8 @@ class devModel extends model
|
||||
|
||||
/**
|
||||
* Get fields of table.
|
||||
*
|
||||
* @param string $table
|
||||
*
|
||||
* @param string $table
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
@@ -69,7 +69,7 @@ class devModel extends model
|
||||
$type = substr($rawField->type, 0, $firstPOS > 0 ? $firstPOS : strlen($rawField->type));
|
||||
$type = str_replace(array('big', 'small', 'medium', 'tiny'), '', $type);
|
||||
$field = array();
|
||||
$field['name'] = isset($this->lang->$module->{$rawField->field}) ? $this->lang->$module->{$rawField->field} : '';
|
||||
$field['name'] = isset($this->lang->$module->{$rawField->field}) ? sprintf($this->lang->$module->{$rawField->field}, $this->lang->dev->tableList[$module]) : '';
|
||||
if((empty($field['name']) or !is_string($field['name'])) and $aliasModule) $field['name'] = isset($this->lang->$aliasModule->{$rawField->field}) ? $this->lang->$aliasModule->{$rawField->field} : '';
|
||||
if($subLang) $field['name'] = isset($this->lang->$aliasModule->$subLang->{$rawField->field}) ? $this->lang->$aliasModule->$subLang->{$rawField->field} : $field['name'];
|
||||
if(!is_string($field['name'])) $field['name'] = '';
|
||||
@@ -129,8 +129,8 @@ class devModel extends model
|
||||
|
||||
/**
|
||||
* Get APIs of a module.
|
||||
*
|
||||
* @param string $module
|
||||
*
|
||||
* @param string $module
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
@@ -256,8 +256,8 @@ class devModel extends model
|
||||
|
||||
/**
|
||||
* Trim asterisks and whitespace from the beginning and whitespace from the end of lines.
|
||||
*
|
||||
* @param string $line
|
||||
*
|
||||
* @param string $line
|
||||
* @access public
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -994,7 +994,7 @@ class gitlabModel extends model
|
||||
*/
|
||||
public function apiGetSingleUser($gitlabID, $userID)
|
||||
{
|
||||
$url = sprintf($this->getApiRoot($gitlabID), "/users/$userID");
|
||||
$url = sprintf($this->getApiRoot($gitlabID, false), "/users/$userID");
|
||||
return json_decode(commonModel::http($url));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user