Browse Source

fix(admin-ui): Fix localized custom fields in Promotion & PaymentMethod

Michael Bromley 2 years ago
parent
commit
d665ec66fa

+ 6 - 1
packages/admin-ui/src/lib/marketing/src/components/promotion-detail/promotion-detail.component.ts

@@ -266,7 +266,12 @@ export class PromotionDetailComponent
         });
         });
         entity.actions.forEach(o => this.addOperation('actions', o));
         entity.actions.forEach(o => this.addOperation('actions', o));
         if (this.customFields.length) {
         if (this.customFields.length) {
-            this.setCustomFieldFormValues(this.customFields, this.detailForm.get('customFields'), entity);
+            this.setCustomFieldFormValues(
+                this.customFields,
+                this.detailForm.get('customFields'),
+                entity,
+                currentTranslation,
+            );
         }
         }
     }
     }
 
 

+ 1 - 0
packages/admin-ui/src/lib/settings/src/components/payment-method-detail/payment-method-detail.component.ts

@@ -273,6 +273,7 @@ export class PaymentMethodDetailComponent
                 this.customFields,
                 this.customFields,
                 this.detailForm.get('customFields'),
                 this.detailForm.get('customFields'),
                 paymentMethod,
                 paymentMethod,
+                currentTranslation,
             );
             );
         }
         }
     }
     }