fix: Seconde tentative, essayer d’attraper la rubrique attendue sur l’article traduit

master
Matthieu Marcillaud 3 months ago
parent 1390d06df8
commit d653a40619

@ -170,6 +170,10 @@ function rubrique_lire_categorie_secteur(int $id_rubrique) : string {
function rubrique_determiner_type(int $id_rubrique) : string {
static $types = [];
if ($id_rubrique === 0) {
return '';
}
if (!isset($types[$id_rubrique])) {
$types[$id_rubrique] = '';
if (rubrique_dans_secteur_plugin($id_rubrique)) {

@ -11,7 +11,7 @@
]
[(#REM) Déterminer le type de rubrique ]
#SET{type_rubrique, #ENV{id_rubrique,0}|rubrique_determiner_type}
#SET{type_rubrique, #ENV{id_rubrique,#ENV{id_parent,0}}|rubrique_determiner_type}
<BOUCLE_types_article(DATA) {source table, #ENV{data}}>
[(#GET{type_rubrique}|in_array{#ENV{exclusions/#CLE}}|non)

Loading…
Cancel
Save