Skip to content
Snippets Groups Projects
Commit f9f7c40a authored by Laurent's avatar Laurent
Browse files

Fix profil_donnees stormisation when profil 1 does not exists

parent 69cebcf2
Branches
Tags
3 merge requests!529Hotline 6.56,!433Hotline 6.53,!431Hotline 6.53
......@@ -24,6 +24,7 @@ require_once("classe_indexation.php");
require_once("classe_unimarc.php");
require_once("classe_codif_matiere.php");
require_once("classe_codif_langue.php");
require_once("classe_profil_donnees.php");
class notice_integration {
const RECORD_RENEW = 5;
......@@ -81,14 +82,14 @@ class notice_integration {
if($id_profil < 0)$format=1; // Paniers d'homogeneisation
else
{
$profil = Class_IntProfilDonnees::find($id_profil);
$this->id_article_periodique = $profil->getIdArticlePeriodique();
$profil = (new profil_donnees())->getProfil($id_profil);
$this->id_article_periodique = $profil['id_article_periodique'];
$format = $profil->getFormat();
$format = $profil['format'];
if (!$format) $format=0;
if ($profil->getTypeFichier()>9)
$format = $profil->getTypeFichier();
if ($profil['type_fichier']>9)
$format = $profil['type_fichier'];
}
$this->format=$format;
unset($this->analyseur);
......
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