Quellcode durchsuchen

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

Michael Bromley vor 2 Jahren
Ursprung
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));
         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.detailForm.get('customFields'),
                 paymentMethod,
+                currentTranslation,
             );
         }
     }