Skip to content

Commit

Permalink
bugfix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Nov 11, 2017
1 parent c38705f commit ab89954
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class WEBUI_M_HU_MoveToDirectWarehouse extends HUEditorProcessTemplate im
{
@Autowired
private DocumentCollection documentsCollection;

private static final HUEditorRowFilter rowsFilter = HUEditorRowFilter.builder().select(Select.ONLY_TOPLEVEL).onlyActiveHUs().build();

@Override
Expand All @@ -59,7 +59,7 @@ protected ProcessPreconditionsResolution checkPreconditionsApplicable()
return ProcessPreconditionsResolution.rejectBecauseNoSelection();
}

if (streamSelectedHUIds(rowsFilter).findAny().isPresent())
if (!streamSelectedHUIds(rowsFilter).findAny().isPresent())
{
return ProcessPreconditionsResolution.reject(msgBL.getTranslatableMsgText(WEBUI_HU_Constants.MSG_WEBUI_ONLY_TOP_LEVEL_HU));
}
Expand Down

0 comments on commit ab89954

Please sign in to comment.