Skip to content

Commit

Permalink
Don't replace empty description with display name; allows client to h…
Browse files Browse the repository at this point in the history
…ide '?' icon
  • Loading branch information
ryanrdoherty committed Oct 17, 2023
1 parent c1275d3 commit 299202b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ public void setPluginProperties(String pluginProperties) throws WdkModelExceptio
public boolean hasAllDynamicFields() {
return (
getName() != null &&
getDisplayName() != null &&
getDescription() != null &&
getImplementation() != null
getDisplayName() != null &&
//getDescription() != null && // description is allowed to be null
getImplementation() != null
);
}

Expand All @@ -109,7 +109,7 @@ public String getDynamicFieldsAsString() {
String propsPrint = properties == null ? null : prettyPrint(properties, FormatUtil.Style.MULTI_LINE);
return new StringBuilder("{").append(NL)
.append("name: ").append(getName()).append(NL)
.append("displayName: ").append(getDisplayName()).append(NL)
.append("displayName: ").append(getDisplayName()).append(NL)
.append("description: ").append(getDescription()).append(NL)
.append("implementation: ").append(getImplementation()).append(NL)
.append("properties: ").append(propsPrint).append(NL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void setDescription(WdkModelText description) {
}

public String getDescription() {
return (_description == null ? _displayName : _description);
return _description;
}

@Override
Expand Down

0 comments on commit 299202b

Please sign in to comment.