Browse Source

Merge branch 'develop'

master
Guillaume Bourgeois 1 year ago
parent
commit
faa1a69bc9
2 changed files with 5 additions and 3 deletions
  1. +0
    -3
      Factory/Address/AddressFactory.php
  2. +5
    -0
      Resources/views/admin/user/field/newsletters.html.twig

+ 0
- 3
Factory/Address/AddressFactory.php View File

@@ -15,9 +15,6 @@ class AddressFactory extends AbstractFactory
$class = AddressContainer::getEntityFqcn();
$address = new $class;

$address->setMerchant($merchant);

return $address;
}

}

+ 5
- 0
Resources/views/admin/user/field/newsletters.html.twig View File

@@ -0,0 +1,5 @@
{% if entity.instance.getNewsletters()|length %}
<span class="badge badge-success">Oui</span>
{% else %}
<span class="badge badge-secondary">Non</span>
{% endif %}

Loading…
Cancel
Save