Merge branch 'liyuchun_fixbug' into 'zenops_44'
* Fix bug when save commit. See merge request easycorp/zentaopms!5256
This commit is contained in:
@@ -1002,7 +1002,7 @@ class repoModel extends model
|
||||
$repoFile->oldPath = $info['oldPath'];
|
||||
$this->dao->insert(TABLE_REPOFILES)->data($repoFile)->exec();
|
||||
|
||||
if($repoFile->oldPath)
|
||||
if($repoFile->oldPath and $file->action == 'R')
|
||||
{
|
||||
$parentPath = dirname($repoFile->oldPath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user