Skip to content

Commit b5484d1

Browse files
nikkuma7GMishx
authored andcommitted
fix(rest): Add shortname field to license REST API response.
1 parent a2e247a commit b5484d1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rest/resource-server/src/main/java/org/eclipse/sw360/rest/resourceserver/core/RestControllerHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,7 @@ public Release convertToEmbeddedRelease(Release release, List<String> fields) {
10191019
public License convertToEmbeddedLicense(License license) {
10201020
License embeddedLicense = new License();
10211021
embeddedLicense.setId(license.getId());
1022+
embeddedLicense.setShortname(license.getShortname());
10221023
embeddedLicense.setFullname(license.getFullname());
10231024
embeddedLicense.setChecked(license.isChecked());
10241025
embeddedLicense.setLicenseType(license.getLicenseType());

0 commit comments

Comments
 (0)