diff --git a/src/main/java/de/metas/ui/web/pporder/PPOrderLinesView.java b/src/main/java/de/metas/ui/web/pporder/PPOrderLinesView.java index c47fb9ff7..0479e0193 100644 --- a/src/main/java/de/metas/ui/web/pporder/PPOrderLinesView.java +++ b/src/main/java/de/metas/ui/web/pporder/PPOrderLinesView.java @@ -5,6 +5,7 @@ import java.util.Set; import java.util.stream.Stream; +import org.adempiere.exceptions.AdempiereException; import org.adempiere.util.GuavaCollectors; import org.adempiere.util.Services; import org.adempiere.util.collections.ListUtils; @@ -286,7 +287,8 @@ public OpenIncludedViewAction actionOpenViewForHUsToIssue(final Set final List huIdsToAvailableToIssue = Services.get(IHUPPOrderBL.class).retrieveHUsAvailableToIssue(selectedRow.getM_Product_ID()); if (huIdsToAvailableToIssue.isEmpty()) { - throw new EntityNotFoundException("No HUs to issue found"); + // NOTE: don't throw EntityNotFoundException because that one would be ignored by frontend. + throw new AdempiereException("No HUs to issue found"); } final IDocumentViewsRepository viewsRepo = Adempiere.getSpringApplicationContext().getBean(IDocumentViewsRepository.class); // TODO dirty workaround