Skip to content
Snippets Groups Projects
Commit 5f88e02b authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Test MigrationStatutAutres.php plus simple

parent e0ad9d12
No related branches found
No related tags found
1 merge request!55Ll bug report services
...@@ -19,27 +19,8 @@ class MigrationStatutAutres extends AbstractMigration ...@@ -19,27 +19,8 @@ class MigrationStatutAutres extends AbstractMigration
public function utile(): bool public function utile(): bool
{ {
$bdd = $this->manager->getBdd();
$sqlStatutAutres = "
SELECT *
FROM statut_intervenant si
WHERE si.code = 'AUTRES'
";
$statutAutres = current($bdd->select($sqlStatutAutres));
//Si j'ai DOSSIER_ADRESSE alors je suis en V15
if (isset($statutAutres['DOSSIER_ADRESSE'])) {
//Alors je teste pour voir si pour le statut AUTRES aucun bloc de données perso est activé sinon je les désactive
return ($statutAutres['DOSSIER_ADRESSE'] ||
$statutAutres['DOSSIER_CONTACT'] ||
$statutAutres['DOSSIER_IBAN'] ||
$statutAutres['DOSSIER_IDENTITE_COMP'] ||
$statutAutres['DOSSIER_INSEE']
);
}
return false; return $this->manager->hasOld('table', 'DOSSIER');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment