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:
@@ -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
|
* @param name
|
||||||
* of the {@link SoftwareModule}
|
* of the {@link SoftwareModule}
|
||||||
|
|||||||
@@ -809,7 +809,7 @@ public final class HawkbitCommonUtil {
|
|||||||
public static boolean isDuplicate(final String name, final String version, final String type) {
|
public static boolean isDuplicate(final String name, final String version, final String type) {
|
||||||
final SoftwareManagement swMgmtService = SpringContextHelper.getBean(SoftwareManagement.class);
|
final SoftwareManagement swMgmtService = SpringContextHelper.getBean(SoftwareManagement.class);
|
||||||
final SoftwareModule swModule = swMgmtService.findSoftwareModuleByNameAndVersion(name, version,
|
final SoftwareModule swModule = swMgmtService.findSoftwareModuleByNameAndVersion(name, version,
|
||||||
swMgmtService.findSoftwareModuleTypeByKey(type));
|
swMgmtService.findSoftwareModuleTypeByName(type));
|
||||||
boolean duplicate = false;
|
boolean duplicate = false;
|
||||||
if (swModule != null) {
|
if (swModule != null) {
|
||||||
duplicate = true;
|
duplicate = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user