From 709949c464973e32982e0c43778045229f4d6989 Mon Sep 17 00:00:00 2001 From: davidglezz Date: Wed, 15 Feb 2023 23:54:07 +0100 Subject: [PATCH] fix(image): fix image cover value Signed-off-by: davidglezz --- src/Model/Image.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Model/Image.yml b/src/Model/Image.yml index 7a1e6c1..85bd9b7 100644 --- a/src/Model/Image.yml +++ b/src/Model/Image.yml @@ -12,7 +12,11 @@ fields: relation: Product generate_all: true cover: - value: 1 + type: conditionalValue + args: + - isNewValue({id_product}) + - 1 + - 0 fields_lang: columns: legend: