From 7d72f2416a86c7906704beccbb068ebc79c702c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Mon, 30 Mar 2020 15:24:32 +0200 Subject: [PATCH] Show error message next to discount quantity, when a error casued by duplicate prciedetail occurs. --- src/Entity/PriceInformations/Pricedetail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/PriceInformations/Pricedetail.php b/src/Entity/PriceInformations/Pricedetail.php index 41ee9309..883bed59 100644 --- a/src/Entity/PriceInformations/Pricedetail.php +++ b/src/Entity/PriceInformations/Pricedetail.php @@ -64,7 +64,7 @@ use Symfony\Component\Validator\Constraints as Assert; * @ORM\Entity() * @ORM\Table("`pricedetails`") * @ORM\HasLifecycleCallbacks() - * @UniqueEntity(fields={"orderdetail", "min_discount_quantity"}) + * @UniqueEntity(fields={"min_discount_quantity", "orderdetail"}) */ class Pricedetail extends AbstractDBElement implements TimeStampableInterface {