Parcourir la source

19.0.1 release

David Benson il y a 3 ans
Parent
commit
d92fd2cbd5

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+06-JUN-2022: 19.0.1
+
+- Fixes handling of cell ID in CSV import [DID-5225]
+
 03-JUN-2022: 19.0.0
 
 - Removes IE 11 support

+ 1 - 1
VERSION

@@ -1 +1 @@
-19.0.0
+19.0.1

+ 0 - 2
src/main/java/com/mxgraph/online/ConverterServlet.java

@@ -267,8 +267,6 @@ public class ConverterServlet  extends HttpServlet
 				}
 				
 				response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
-
-				throw e;
 			}
 		}
 	}

Fichier diff supprimé car celui-ci est trop grand
+ 73 - 73
src/main/webapp/js/app.min.js


+ 9 - 4
src/main/webapp/js/diagramly/EditorUi.js

@@ -13559,19 +13559,24 @@
     	    			var values = arrays[i];
     					var cell = null;
     					var id = (identityIndex != null) ? namespace + values[identityIndex] : null;
+						var ignoreCell = false;
     					
     					if (id != null)
     					{
     						cell = graph.model.getCell(id);
+
+							// Bypasses update of cells inserted during this run
+							ignoreCell = cell == null || mxUtils.indexOf(
+								allCells, cell) >= 0;
     					}
-    					
+						
     					var newCell = new mxCell(label, new mxGeometry(x0, y,
 		    				0, 0), style || 'whiteSpace=wrap;html=1;');
 						newCell.collapsed = collapsed;
 						newCell.vertex = true;
     					newCell.id = id;
 						
-						if (cell != null)
+						if (cell != null && !ignoreCell)
 						{
 							graph.model.setCollapsed(cell, collapsed);
 						}
@@ -13580,7 +13585,7 @@
 				    	{
 							graph.setAttributeForCell(newCell, attribs[j], values[j]);
 
-							if (cell != null)
+							if (cell != null && !ignoreCell)
 							{
 								graph.setAttributeForCell(cell, attribs[j], values[j]);
 							}
@@ -13594,7 +13599,7 @@
 							{
 								graph.labelChanged(newCell, tempLabel);
 
-								if (cell != null)
+								if (cell != null && !ignoreCell)
 								{
 									graph.cellLabelChanged(cell, tempLabel);
 								}

Fichier diff supprimé car celui-ci est trop grand
+ 6 - 6
src/main/webapp/js/integrate.min.js


Fichier diff supprimé car celui-ci est trop grand
+ 104 - 104
src/main/webapp/js/viewer-static.min.js


Fichier diff supprimé car celui-ci est trop grand
+ 104 - 104
src/main/webapp/js/viewer.min.js


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
src/main/webapp/mxgraph/mxClient.js


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
src/main/webapp/service-worker.js


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
src/main/webapp/service-worker.js.map