Merge branch 'devops_16736' into 'master'

* Fix bug#16736,17037,16844

See merge request easycorp/zentaopms!766
This commit is contained in:
李玉春
2021-12-03 02:25:07 +00:00
7 changed files with 13 additions and 9 deletions
+3 -2
View File
@@ -291,8 +291,9 @@ $lang->action->label->syncprogram = 'start';
$lang->action->label->syncproject = 'start';
$lang->action->label->syncexecution = 'start';
$lang->action->label->startProgram = '(The start of the project sets the status of the program as Ongoing)';
$lang->action->label->createmr = 'MR Linked';
$lang->action->label->mergedmr = 'MR Merged';
$lang->action->label->createmr = 'Merge Request Linked';
$lang->action->label->deletemr = 'Merge Request Unlinked';
$lang->action->label->mergedmr = 'Merge Request Merged';
$lang->action->label->reopen = 'Reopen';
$lang->action->label->approve = 'Passed';
$lang->action->label->reject = 'Rejected';
+3 -2
View File
@@ -294,8 +294,9 @@ $lang->action->label->syncprogram = '开始了';
$lang->action->label->syncproject = '开始了';
$lang->action->label->syncexecution = '开始了';
$lang->action->label->startProgram = '(因项目开始而启动项目集)';
$lang->action->label->createmr = 'MR关联了';
$lang->action->label->mergedmr = 'MR合并了';
$lang->action->label->createmr = '合并请求关联了';
$lang->action->label->deletemr = '合并请求取消了';
$lang->action->label->mergedmr = '合并请求合并了';
$lang->action->label->compilepass = '构建成功';
$lang->action->label->compilefail = '构建失败';
$lang->action->label->reopen = '重新打开';
+2 -2
View File
@@ -114,9 +114,9 @@ $lang->gitlab->user = new stdclass;
$lang->gitlab->user->id = "用户ID";
$lang->gitlab->user->name = "名称";
$lang->gitlab->user->username = "用户名";
$lang->gitlab->user->email = "电子邮件";
$lang->gitlab->user->email = "邮箱";
$lang->gitlab->user->password = "密码";
$lang->gitlab->user->passwordRepeat = "重复密码";
$lang->gitlab->user->passwordRepeat = "重复密码";
$lang->gitlab->user->projectsLimit = "限制项目";
$lang->gitlab->user->canCreateGroup = "可创建组";
$lang->gitlab->user->external = "外部人员";
+1 -1
View File
@@ -72,7 +72,7 @@
<th><?php echo $lang->gitlab->user->avatar;?></th>
<td>
<div id="avatarUpload" class="text-center">
<?php echo html::avatar(array('avatar'=>' ', 'account'=>''), 50); ?>
<?php echo html::avatar(array('avatar'=>$defaultTheme . 'images/repo/avatar.jpeg', 'account'=>''), 50); ?>
<input type="file" name="avatar" id="files" class="form-control hidden">
<?php echo html::a('javascript:void(0);', '<i class="icon icon-pencil icon-2x"></i>', '', "class='btn-avatar' id='avatarUploadBtn' data-toggle='tooltip' data-container='body' data-placement='bottom' title='{$lang->gitlab->user->avatar}'");?>
</div>
+1 -1
View File
@@ -73,7 +73,7 @@
<th><?php echo $lang->gitlab->user->avatar;?></th>
<td>
<div id="avatarUpload" class="text-center">
<?php echo html::avatar(array('avatar'=>$user->avatar_url, 'account'=>''), 50); ?>
<?php echo html::avatar(array('avatar'=>$user->avatar_url ? $user->avatar_url : $defaultTheme . 'images/repo/avatar.jpeg', 'account'=>''), 50); ?>
<input type="file" name="avatar" id="files" class="form-control hidden">
<?php echo html::a('javascript:void(0);', '<i class="icon icon-pencil icon-2x"></i>', '', "class='btn-avatar' id='avatarUploadBtn' data-toggle='tooltip' data-container='body' data-placement='bottom' title='{$lang->gitlab->user->avatar}'");?>
</div>
+3 -1
View File
@@ -1080,7 +1080,9 @@ class mrModel extends model
*/
public function unlink($MRID, $productID, $type, $linkID)
{
return $this->dao->delete()->from(TABLE_RELATION)->where('product')->eq($productID)->andWhere('AType')->eq('mr')->andWhere('AID')->eq($MRID)->andWhere('BType')->eq($type)->andWhere('BID')->eq($linkID)->exec();
$this->dao->delete()->from(TABLE_RELATION)->where('product')->eq($productID)->andWhere('AType')->eq('mr')->andWhere('AID')->eq($MRID)->andWhere('BType')->eq($type)->andWhere('BID')->eq($linkID)->exec();
$this->loadModel('action')->create($type, $linkID, 'deletemr');
}
/**
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB