Merge branch 'sprint/182_liumengyi_fixbug' into 'kanban'
* Fix bug #18485,#18474. See merge request easycorp/zentaopms!1424
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
function setCopyProject(executionID)
|
||||
{
|
||||
location.href = createLink('execution', 'create', 'projectID=&executionID=0©ExecutionID=' + executionID);
|
||||
location.href = createLink('execution', 'create', 'projectID=' + projectID + '&executionID=0©ExecutionID=' + executionID);
|
||||
}
|
||||
|
||||
$(function()
|
||||
|
||||
@@ -306,7 +306,7 @@ function renderUserAvatar(user, objectType, objectID, size)
|
||||
if(!user) return $('<a class="avatar has-text ' + avatarSizeClass + ' avatar-circle iframe" title="' + noAssigned + '" style="background: #ccc" href="' + link + '" data-toggle="modal" data-width="80%"><i class="icon icon-person"></i></a>');
|
||||
|
||||
if(typeof user === 'string') user = {account: user};
|
||||
if(!user.avatar && window.userList && window.userList[user.account]) user = {avatar: userList[user.account].avatar, account: user.account, realname: users[user.account]};
|
||||
if(!user.avatar && window.users && window.users[user.account]) user = {avatar: users[user.account].avatar, account: user.account, realname: users[user.account]};
|
||||
|
||||
var $noPrivAvatar = $('<div class="avatar has-text ' + avatarSizeClass + ' avatar-circle" />').avatar({user: user});
|
||||
if(objectType == 'task' && !priv.canAssignTask) return $noPrivAvatar;
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
<?php js::set('projectCommon', $lang->project->common);?>
|
||||
<?php js::set('multiBranchProducts', $multiBranchProducts);?>
|
||||
<?php js::set('systemMode', $config->systemMode);?>
|
||||
<?php js::set('projectID', $projectID);?>
|
||||
<div id='mainContent' class='main-content'>
|
||||
<div class='center-block'>
|
||||
<div class='main-header'>
|
||||
|
||||
Reference in New Issue
Block a user