Merge pull request #116 from bsinno/fix-wrong-ui-call

Fixed wrong call of sw module type. UI uses name and not key.
This commit is contained in:
Michael Hirsch
2016-04-01 16:40:35 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -259,7 +259,7 @@ public class SoftwareManagement {
}
/**
* retrieves {@link SoftwareModule}s by their name AND version.
* retrieves {@link SoftwareModule} by their name AND version AND type..
*
* @param name
* of the {@link SoftwareModule}

View File

@@ -809,7 +809,7 @@ public final class HawkbitCommonUtil {
public static boolean isDuplicate(final String name, final String version, final String type) {
final SoftwareManagement swMgmtService = SpringContextHelper.getBean(SoftwareManagement.class);
final SoftwareModule swModule = swMgmtService.findSoftwareModuleByNameAndVersion(name, version,
swMgmtService.findSoftwareModuleTypeByKey(type));
swMgmtService.findSoftwareModuleTypeByName(type));
boolean duplicate = false;
if (swModule != null) {
duplicate = true;