-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hi,
I found a problem in the display of addresses from the MetadataType form.
The data displayed in all blocks corresponds to the data of the last provider displayed.
I solved the problem very quickly by adding a clone on the provider :
private function addShippingAddressProviderFormViewVars(FormView $view, ShippingMethodInterface $method): void
{
if ($method instanceof AddressProviderAwareInterface && null !== $method->getShippingAddressProviderConfiguration()) {
$provider = clone $this->addressProviderFactory->createFromConfiguration($method->getShippingAddressProviderConfiguration());
$view->vars['address_provider_template'] = $provider->getShipmentMetadataTemplate();
$view->vars['address_provider'] = $provider;
}
}
Here are a few screens.

Metadata
Metadata
Assignees
Labels
No labels