Skip to content

Commit

Permalink
[2360] Fix an issue on widget ref creation modal
Browse files Browse the repository at this point in the history
Bug: #2360
Signed-off-by: Florian ROUËNÉ <florian.rouene@obeosoft.com>
  • Loading branch information
frouene authored and pcdavid committed Sep 8, 2023
1 parent 44fb482 commit fb582b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Expand Up @@ -68,6 +68,7 @@ Note that _palette_ will be removed in short-term from the _DiagramDescription_.
An error message is now displayed if the _Shape_ is not set.
- https://github.com/eclipse-sirius/sirius-web/issues/2309[#2309] [diagram] Fix an issue where the edge labels where not always centered on react-flow diagrams
- https://github.com/eclipse-sirius/sirius-web/issues/2195[#2195] [view] Fix an issue where a border color set to _None_ would set the color to a default color, not none.
- https://github.com/eclipse-sirius/sirius-web/issues/2360[#2360] [form] Fix an issue that prevent creation of new object on some containment reference with the reference widget.

=== New Features

Expand Down
Expand Up @@ -42,7 +42,7 @@ public ReferenceWidgetReferenceDataFetcher(IEMFKindService emfKindService) {
public Reference get(DataFetchingEnvironment environment) throws Exception {
ReferenceWidget referenceWidget = environment.getSource();
var feature = referenceWidget.getSetting().getEStructuralFeature();
return new Reference(this.emfKindService.getKind(feature.getEContainingClass()),
return new Reference(this.emfKindService.getKind(referenceWidget.getSetting().getEObject().eClass()),
feature.getName(),
this.emfKindService.getKind(((EReference) feature).getEReferenceType()),
((EReference) feature).isContainment(),
Expand Down

0 comments on commit fb582b2

Please sign in to comment.