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: