File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Source/eu.modelwriter.configuration/src/eu/modelwriter/configuration/internal Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -917,11 +917,12 @@ public static ArrayList<String> getSuitableSecondSideTypesOfRelation(final Strin
917917 final ArrayList <String > suitableRelationNames = new ArrayList <>();
918918
919919 final int firstSideTypeId = AlloyUtilities .getSigTypeIdByName (firstSideType );
920+ final int parentIdOfFirstType = AlloyUtilities .getAncestorOfSig (firstSideTypeId ).getID ();
920921
921922 int id = -1 ;
922923 for (final FieldType fieldType : fields ) {
923924 if (fieldType .getLabel ().equals (relationName )
924- && fieldType .getTypes ().get (0 ).getType ().get (0 ).getID () == firstSideTypeId ) {
925+ && fieldType .getTypes ().get (0 ).getType ().get (0 ).getID () == parentIdOfFirstType ) {
925926 id = fieldType .getTypes ().get (0 ).getType ().get (1 ).getID ();
926927 }
927928 }
You can’t perform that action at this time.
0 commit comments