diff --git a/frontend/sw360-portlet/src/main/webapp/html/components/mergeComponent.jsp b/frontend/sw360-portlet/src/main/webapp/html/components/mergeComponent.jsp index 0ce3e0996..b8eb9ee4a 100644 --- a/frontend/sw360-portlet/src/main/webapp/html/components/mergeComponent.jsp +++ b/frontend/sw360-portlet/src/main/webapp/html/components/mergeComponent.jsp @@ -131,8 +131,8 @@ function submitChosenComponent($stepElement) { var checkedList = $stepElement.find('input:checked'); - if (checkedList.size() !== 1) { - $stepElement.find('.stepFeedback').html('
Please choose exactly one component!
'); + if (checkedList.size() !== 1 || $(checkedList.get(0)).val() === $wizardRoot.data('componentTargetId')) { + $stepElement.find('.stepFeedback').html('
Please choose exactly one component, which is not the component itself!
'); $('html, body').stop().animate({ scrollTop: 0 }, 300, 'swing'); setTimeout(function() { $stepElement.find('.stepFeedback').html('');