Skip to content

BUG - Multiple relationship #544

@FedeG

Description

@FedeG

When an entity has more of one relationship with another entity, the views fails.

For example if in ng-admin-demo add a field tags-2 to posts

In post.listView add a field:

nga.field('tags-2', 'reference_many')
  .targetEntity(tag)
  .targetField(nga.field('name'))

In post.editionView add a field:

nga.field('tags-2', 'reference_many')
  .targetEntity(tag)
  .targetField(nga.field('name'))
  .cssClasses('col-sm-4')

Steps to generate this bug:

1- View post
Show

2- Add tags and tags-2 in post
Edit

3- Save post
Save

4- List all post
List

5- View edited post
Show2

6- Edit post
Edit2

When you add the second relationship to the entity, in listView and showView the relations can't be viewed. Only one of the two relationships is visible but in the editionView can be seen well.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions