Commit 83a793da authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Petite amélioration de l'affichage des différentiels

parent 348fb92c
Pipeline #9209 failed with stage
in 10 seconds
CHANGELOG
=========
3.1.4 (17/02/2021)
------------------
- Petite amélioration de l'affichage des différentiels
3.1.3 (16/02/2021)
------------------
- Affichage + précis du diff si autre que update
......
......@@ -88,7 +88,7 @@ class Ligne
unset($data['IMPORT_ACTION']);
$this->source = $entityManager->find(Source::class, (integer)$data['SOURCE_ID']);
unset($data['SOURCE_ID']);
//unset($data['SOURCE_ID']);
$this->sourceCode = $data['SOURCE_CODE'];
unset($data['SOURCE_CODE']);
......
......@@ -2,6 +2,7 @@
namespace UnicaenImport\View\Helper\DifferentielLigne;
use UnicaenImport\Entity\Db\Source;
use UnicaenImport\Options\Traits\ModuleOptionsAwareTrait;
use Zend\Filter\Word\UnderscoreToCamelCase;
use Zend\View\Helper\AbstractHelper;
......@@ -177,6 +178,8 @@ class DifferentielLigne extends AbstractHelper
} else {
return 'valide pour toujours';
}
case 'SOURCE_ID':
return 'Source devient ' . $this->ligne->getEntityManager()->find(Source::class, $value);;
default:
$column = str_replace('_', ' ', strtolower($column));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment