Commit 42ce0c39 authored by GoshaZotov's avatar GoshaZotov

Merge branch 'release/3.8.1' into develop

parents 9917fa89 2593ea5a
...@@ -1167,24 +1167,22 @@ DependencyGraph.prototype = { ...@@ -1167,24 +1167,22 @@ DependencyGraph.prototype = {
getNextTableName:function ( ws, Ref, tableName ) { getNextTableName:function ( ws, Ref, tableName ) {
this.nTableNameMaxIndex++; this.nTableNameMaxIndex++;
var sNewName = this.sTableNamePattern + this.nTableNameMaxIndex,
name = getDefNameVertexId( null, sNewName ); if(tableName){
while ( this.defNameList[name] ) { sNewName = tableName;
this.nTableNameMaxIndex++; }
sNewName = this.sTableNamePattern + this.nTableNameMaxIndex; else{
name = getDefNameVertexId( null, sNewName ); var collaborativeIndexUser = "";
} if(ws.workbook.oApi.collaborativeEditing.getCollaborativeEditing())
if(tableName)
{
sNewName = tableName;
}
else if(ws.workbook.oApi.collaborativeEditing.getCollaborativeEditing())
{
var indexUser = ws.workbook.oApi.CoAuthoringApi.get_indexUser();
if(null !== indexUser)
{ {
sNewName += "_" + indexUser; collaborativeIndexUser = "_" + ws.workbook.oApi.CoAuthoringApi.get_indexUser();
}
var sNewName = this.sTableNamePattern + this.nTableNameMaxIndex + collaborativeIndexUser,
name = getDefNameVertexId( null, sNewName );
while ( this.defNameList[name] ) {
this.nTableNameMaxIndex++;
sNewName = this.sTableNamePattern + this.nTableNameMaxIndex + collaborativeIndexUser;
name = getDefNameVertexId( null, sNewName );
} }
} }
......
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