@@ -2536,13 +2536,14 @@ private ActionDefinition generateCreateLinkAndRightObjectAction(LinkObject<?, ?>
25362536 }
25372537
25382538 private void addAttributesToCreateobject (DynamicActionDefinition action , DataObjectDefinition object ) {
2539- addAttributesToCreateobject (action , object , false );
2539+ addAttributesToCreateobject (action , object , false , true );
25402540 }
25412541
25422542 private void addAttributesToCreateobject (
25432543 DynamicActionDefinition action ,
25442544 DataObjectDefinition object ,
2545- boolean objectisoptional ) {
2545+ boolean objectisoptional ,boolean addlinks ) {
2546+
25462547 for (int i = 0 ; i < object .propertylist .getSize (); i ++) {
25472548 Property <?> property = object .propertylist .get (i );
25482549 for (int j = 0 ; j < property .getContextDataForCreationSize (); j ++) {
@@ -2556,7 +2557,7 @@ private void addAttributesToCreateobject(
25562557 }
25572558 }
25582559 // ---- specific processing for left for links with show as field
2559- for (int i = 0 ; i < object .propertylist .getSize (); i ++) {
2560+ if ( addlinks ) for (int i = 0 ; i < object .propertylist .getSize (); i ++) {
25602561 Property <?> property = object .propertylist .get (i );
25612562 if (property instanceof LeftForLink ) {
25622563 LeftForLink leftforlink = (LeftForLink ) property ;
@@ -2571,7 +2572,15 @@ private void addAttributesToCreateobject(
25712572 ObjectArgument mainobject = new ObjectArgument ("object" , object );
25722573 mainobject .setOptional (objectisoptional );
25732574 action .addInputArgumentAsAccessCriteria (mainobject );
2575+
25742576 }
2577+
2578+ private void addAttributesToCreateobject (
2579+ DynamicActionDefinition action ,
2580+ DataObjectDefinition object ,
2581+ boolean objectisoptional ) {
2582+ addAttributesToCreateobject (action ,object ,objectisoptional ,false );
2583+ }
25752584
25762585 private DynamicActionDefinition generateDuplicateAction () {
25772586 DynamicActionDefinition duplicateaction = new DynamicActionDefinition (
0 commit comments