fix check for missing article
This commit is contained in:
		@ -74,7 +74,7 @@ public class SupplierOrderController {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		final Article article = articleRepository.findArticleByArticleOffer(order.ordered).orElse(null);
 | 
			
		||||
		if (order == null) {
 | 
			
		||||
		if (article == null) {
 | 
			
		||||
			model.addAttribute("error", "Der bestellte Artikel wurde nicht angelegt, er hätte nicht bestellt werden dürfen.");
 | 
			
		||||
			response.setStatus(HttpServletResponse.SC_EXPECTATION_FAILED);
 | 
			
		||||
			return listSuppliers(model);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user