Przeglądaj źródła

Correctif Reminders

feature/export_comptable
Guillaume 4 lat temu
rodzic
commit
4f3a7e0508
1 zmienionych plików z 4 dodań i 2 usunięć
  1. +4
    -2
      ShopBundle/Services/Utils.php

+ 4
- 2
ShopBundle/Services/Utils.php Wyświetl plik

@@ -350,12 +350,14 @@ class Utils
if (!isset($entitiesConfig[$reminder->getEntityName()])) {
$entitiesConfig[$reminder->getEntityName()] = $this->configManager->getEntityConfig($reminder->getEntityName());
}
if ($reminder->getEntityAction() == 'edit' || $reminder->getEntityAction() == 'show') {
if($reminder->getEntityAction() == 'edit' || $reminder->getEntityAction() == 'show') {
if (!isset($entitiesRepo[$reminder->getEntityName()])) {
$entitiesRepo[$reminder->getEntityName()] = $this->em->getRepository($entitiesConfig[$reminder->getEntityName()]['class']);
}

$reminder->relatedPage = $entitiesRepo[$reminder->getEntityName()]->find($reminder->getEntityId())->__toString();
if($reminder->getEntityId()) {
$reminder->relatedPage = $entitiesRepo[$reminder->getEntityName()]->find($reminder->getEntityId())->__toString();
}
} else {
$reminder->relatedPage = 'Liste de ' . $entitiesConfig[$reminder->getEntityName()]['label'];
}

Ładowanie…
Anuluj
Zapisz