Commit 0eb0f3a8 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Merge branch 'release_4.0.1'

parents 4bf1ac49 dea0a7e5
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
Journal des modifications
=========================

4.0.1
-----
- [FIX] signature des fonctions de StructureSubstitHelper string => ?string
- [FIX] les résumés pour la BU se chevauchaient p class='resume pre-scrollable' => p class='pre-scrollable'
- [FIX] ajustement des css de la page proposition

4.0.0
-----
- Migration vers Laminas (back-end PHP).
+18 −0
Original line number Diff line number Diff line
# Version 4.0.1

## 1. Sur le serveur d'application

- Placez-vous dans le répertoire de l'application puis lancez la commande suivante
  pour installer la nouvelle version :

```bash
git fetch --tags && git checkout --force 4.0.1 && bash ./install.sh
```

- Selon le moteur PHP que vous avez installé, rechargez le service, exemple :
    - php7.3-fpm         : `service php7.3-fpm reload`
    - apache2-mod-php7.3 : `service apache2 reload`

## 2. Dans la base de données

R.A.S.
 No newline at end of file
+4 −4
Original line number Diff line number Diff line
@@ -16,10 +16,10 @@ class StructureSubstitHelper extends AbstractHelper

    /**
     * @param StructureConcreteInterface $structurestructureConcrete
     * @param string                     $logoContent
     * @param string|null                     $logoContent
     * @return string
     */
    public function structureSource(StructureConcreteInterface $structurestructureConcrete, $logoContent)
    public function structureSource(StructureConcreteInterface $structurestructureConcrete, ?string $logoContent)
    {
        $texte = '<div class="card" id="panel_' . $structurestructureConcrete->getId() . '" >';
        $texte .= '<div class="card-header bg-info">';
@@ -71,10 +71,10 @@ class StructureSubstitHelper extends AbstractHelper

    /**
     * @param Structure $structure
     * @param string    $logoContent
     * @param string|null    $logoContent
     * @return string
     */
    function structureCible(Structure $structure, string $logoContent)
    function structureCible(Structure $structure, ?string $logoContent)
    {
        $texte = "";
        $texte .= '<div class="card">';
+2 −2
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ $langueAutreTitre = function() use ($metadonnee) {
</div>
        <dl class="metadonnees">
            <dt>Résumé</dt>
            <dd><p class="resume pre-scrollable"><?php echo $this->escapeText()->render($metadonnee->getResume()) ?></p></dd>
            <dd><p class="pre-scrollable"><?php echo $this->escapeText()->render($metadonnee->getResume()) ?></p></dd>
            <dt>Résumé en anglais</dt>
            <dd><p class="resume pre-scrollable"><?php echo $this->escapeText()->render($metadonnee->getResumeAnglais()) ?></p></dd>
            <dd><p class="pre-scrollable"><?php echo $this->escapeText()->render($metadonnee->getResumeAnglais()) ?></p></dd>
        </dl>
 No newline at end of file
+56 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ use Application\Service\These\TheseServiceAwareTrait;
use Application\Service\Utilisateur\UtilisateurServiceAwareTrait;
use Application\Service\Variable\VariableServiceAwareTrait;
use DateTime;
use InvalidArgumentException;
use Notification\Exception\NotificationException;
use Notification\Notification;
use Notification\Service\NotifierService;
@@ -251,6 +252,9 @@ class NotifierSoutenanceService extends NotifierService
                    'panic' => $panic,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible pour l'unité de recherche (".__METHOD__."::TheseId#".
                $these->getId()."|UniteRecherche#".$these->getUniteRecherche()->getId().")" );
        }
    }

@@ -278,6 +282,9 @@ class NotifierSoutenanceService extends NotifierService
                    'panic' => $panic,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible pour l'école doctorale (".__METHOD__."::TheseId#".
                $these->getId()."|EcoleDoctorale#".$these->getEcoleDoctorale()->getId().")" );
        }
    }

@@ -302,6 +309,9 @@ class NotifierSoutenanceService extends NotifierService
                    'panic' => false,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible pour l'établissement (".__METHOD__."::TheseId#".
                $these->getId()."|Etablissement#".$these->getEtablissement()->getId().")" );
        }
    }

@@ -328,6 +338,8 @@ class NotifierSoutenanceService extends NotifierService
                    'these' => $these,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible (".__METHOD__."::TheseId#".$these->getId().")");
        }
    }

@@ -346,6 +358,8 @@ class NotifierSoutenanceService extends NotifierService
                    'these' => $these,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible (".__METHOD__."::TheseId#".$these->getId().")");
        }
    }

@@ -376,7 +390,10 @@ class NotifierSoutenanceService extends NotifierService
                    'these' => $these,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible (".__METHOD__."::TheseId#".$these->getId().")");
        }

    }

    /** ENGAGEMENT IMPARTIALITE ***************************************************************************************/
@@ -404,7 +421,10 @@ class NotifierSoutenanceService extends NotifierService
                    'url' => $url,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible (".__METHOD__."::TheseId#".$these->getId().")");
        }

    }

    /**
@@ -428,7 +448,10 @@ class NotifierSoutenanceService extends NotifierService
                    'membre' => $membre,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible (".__METHOD__."::TheseId#".$these->getId().")");
        }

    }

    /**
@@ -459,7 +482,10 @@ class NotifierSoutenanceService extends NotifierService
                    'membre' => $membre,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible (".__METHOD__."::TheseId#".$these->getId().")");
        }

    }

    /**
@@ -483,7 +509,10 @@ class NotifierSoutenanceService extends NotifierService
                    'membre' => $membre,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible (".__METHOD__."::TheseId#".$these->getId().")");
        }

    }

    /**
@@ -509,7 +538,10 @@ class NotifierSoutenanceService extends NotifierService
                    'url' => $url,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible (".__METHOD__."::TheseId#".$these->getId().")");
        }

    }

    /**
@@ -529,7 +561,10 @@ class NotifierSoutenanceService extends NotifierService
                    'these' => $these,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible (".__METHOD__."::TheseId#".$these->getId().")");
        }

    }

    /**
@@ -561,7 +596,10 @@ class NotifierSoutenanceService extends NotifierService
                    'url' => $url,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible (".__METHOD__."::TheseId#".$these->getId().")");
        }

    }

    /**
@@ -592,7 +630,10 @@ class NotifierSoutenanceService extends NotifierService
                    'url' => $url,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible (".__METHOD__."::TheseId#".$these->getId().")");
        }

    }


@@ -625,7 +666,10 @@ class NotifierSoutenanceService extends NotifierService
                    'avis' => $avis,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible (".__METHOD__."::TheseId#".$these->getId().")");
        }

    }

    /**
@@ -655,7 +699,10 @@ class NotifierSoutenanceService extends NotifierService
                    'proposition' => $proposition,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible (".__METHOD__."::TheseId#".$these->getId().")");
        }

    }

    /**
@@ -686,7 +733,10 @@ class NotifierSoutenanceService extends NotifierService
                    'url' => $url,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible (".__METHOD__."::TheseId#".$these->getId().")");
        }

    }

    /**
@@ -712,7 +762,10 @@ class NotifierSoutenanceService extends NotifierService
                    'url' => $url,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible (".__METHOD__."::TheseId#".$these->getId().")");
        }

    }

    /**
@@ -743,7 +796,10 @@ class NotifierSoutenanceService extends NotifierService
                    'url' => $url,
                ]);
            $this->trigger($notif);
        } else {
            throw new InvalidArgumentException("Aucun mail de disponible (".__METHOD__."::TheseId#".$these->getId().")");
        }

    }

    /**
Loading