Merge branch 'liyuchun_fixbug' into 'zenops_44'

* Fix bug when save commit.

See merge request easycorp/zentaopms!5256
This commit is contained in:
孙广明
2022-09-08 01:03:45 +00:00
+1 -1
View File
@@ -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);