Commit 3800f44c authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

[FIX] erreur dans la requete de EtatCategorieService::getEtatCategorieByCode

parent 1109a8f2
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for src/UnicaenEtat/Service/EtatCategorie/EtatCategorieService.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ class EtatCategorieService {
    public function getEtatCategorieByCode(string $code) : ?EtatCategorie
    {
        $qb = $this->createQueryBuilder()
            ->andWhere('etype.code = :code')
            ->andWhere('ecategorie.code = :code')
            ->setParameter('code', $code)
        ;
        try {
+10 −2
Changes for src/UnicaenEtat/View/Helper/partial/etat-instance.phtml: 10 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -12,10 +12,15 @@ $displayUser = (isset($options['display-user']) AND $options['display-user'] ===

$type = $instance->getType();
?>

<div class="row">
    <div class="col-md-3">
        <?php if ($type) : ?>
            <?php echo $this->etattype($type); ?>
        <?php endif; ?>

    </div>
    <div class="col-md-9">
        <small>
        <?php if ($displayDate OR $displayUser) : ?>
            Validé·e
        <?php endif; ?>
@@ -24,9 +29,12 @@ $type = $instance->getType();
            <?php $date = $instance->getHistoModification()?:$instance->getHistoCreation(); ?>
            <?php echo $date->format('d/m/Y à H:i'); ?>
        <?php endif; ?>
        <br/>
        <?php if ($displayUser) : ?>
            par
            <?php $user = $instance->getHistoModificateur()?:$instance->getHistoCreateur(); ?>
            <?php echo $user->getDisplayName(); ?>
        <?php endif; ?>
        </small>
    </div>
</div>
 No newline at end of file