Commit 3d6b50ab authored by Christophe Dumez's avatar Christophe Dumez

- fixed a bug when committing removed files in a removed directory whithout...

- fixed a bug when committing removed files in a removed directory whithout committing the directory

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6874 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a187e6d8
No related merge requests found
......@@ -153,18 +153,25 @@ print \'\'\'\n
}\n
}\n
}\n
\n
partialToCommit=tree.getAllPartiallyChecked();\n
if(popup==1){\n
//TODO\n
filesPartiallyCheckedArray=[];\n
}else{\n
filesPartiallyCheckedArray=tree.getAllPartiallyChecked().split(\',\');\n
}\n
for(i=0;i<filesPartiallyCheckedArray.length; ++i){\n
// useless for removed directories\n
if(tree.getItemColor(filesPartiallyCheckedArray[i])==\'green\'){\n
FilesAddedArray[nbAdded++]=filesPartiallyCheckedArray[i];\n
}else\n
if(tree.getItemColor(filesPartiallyCheckedArray[i])==\'orange\'){\n
FilesModifiedArray[nbModified++]=filesPartiallyCheckedArray[i];\n
}\n
}\n
if(nbModified!=0){\n
filesModified=FilesModifiedArray.join(\',\');\n
if(partialToCommit!=\'\'){\n
filesModified=filesModified+\',\'+partialToCommit;\n
}\n
}else{\n
filesModified=\'none\';\n
if(partialToCommit!=\'\'){\n
filesModified=partialToCommit;\n
}\n
}\n
form.modified.value=filesModified;\n
if(nbAdded!=0){\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment