Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
#103 - fixes instantiation of DomainObjectPropertyValueViewModel
Browse files Browse the repository at this point in the history
need to initialize the type field also.
  • Loading branch information
danhaywood committed Jan 18, 2019
1 parent 02c2026 commit b237af0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ public class DomainObjectPropertyValueViewModel {
public DomainObjectPropertyValueViewModel(final DomainObjectProperty domainObjectProperty) {
this.sourceBookmark = domainObjectProperty.getBookmark();
this.sourceProperty = domainObjectProperty.getProperty();
this.type = domainObjectProperty.getType();
}

public String title() {
return String.format("%s#%s", getSourceBookmark(), getSourceProperty());
return String.format("%s#%s (%s)", getSourceBookmark(), getSourceProperty(), getType());
}


Expand Down

0 comments on commit b237af0

Please sign in to comment.