cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmen...@apache.org
Subject svn commit: r670259 - /cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/ObjEntityRelationshipTab.java
Date Sat, 21 Jun 2008 21:42:41 GMT
Author: kmenard
Date: Sat Jun 21 14:42:41 2008
New Revision: 670259

URL: http://svn.apache.org/viewvc?rev=670259&view=rev
Log:
Fixed CAY-1060: CM: Allow multiple item selections

Modified:
    cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/ObjEntityRelationshipTab.java

Modified: cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/ObjEntityRelationshipTab.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/ObjEntityRelationshipTab.java?rev=670259&r1=670258&r2=670259&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/ObjEntityRelationshipTab.java
(original)
+++ cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/ObjEntityRelationshipTab.java
Sat Jun 21 14:42:41 2008
@@ -239,7 +239,7 @@
                 rels[i] = model.getRelationship(sel[i]);
             }
             
-            if (rels.length == 0 && rels[0].getTargetEntity() != null
+            if (rels.length == 1 && rels[0].getTargetEntity() != null
                     && ((ObjEntity) rels[0].getSourceEntity()).getDbEntity() != null
                     && ((ObjEntity) rels[0].getTargetEntity()).getDbEntity() != null)
{
                 resolve.setEnabled(true);



Mime
View raw message