Skip to content

#180 [Shortener] fix: pas de gestion des catégories, la table llx_categorie_shortener n'existe pas - #181

Merged
nicolas-eoxia merged 2 commits into
Eoxia:developfrom
nicolas-eoxia:fix/180-shortener-no-category
Oct 20, 2026
Merged

nicolas-eoxia merged 2 commits into
Eoxia:developfrom
nicolas-eoxia:fix/180-shortener-no-category

Conversation

@nicolas-eoxia

Copy link
Copy Markdown
Member

Closes #180

Ce qui change

Shortener déclare public int $isCategoryManaged = 0;, comme SaturneElement, SaturneStandard, DigiriskElement ou RegistrationCertificateFr.

Avant, il héritait de SaturneObject::$isCategoryManaged = 1. actions_addupdatedelete.inc.php appelait donc setCategories() à chaque enregistrement de la fiche, avec une requête sur llx_categorie_shortener, une table qui n'existe pas. dol_print_error() sortait avant l'en-tête de redirection (« headers already sent »), et l'utilisateur restait sur l'écran « erreur technique ».

Vérifié

Sur un bac à sable local (Dolibarr 23.0.3), en enregistrant la fiche d'un raccourci après avoir changé son URL d'origine :

  • avant : écran « Dolibarr a détecté une erreur technique » (DB_ERROR_NOSUCHTABLE) et warnings dans php_error.log ;
  • après : la page redirige vers la fiche, sans erreur, et php_error.log reste vide.

Relevé pendant les tests de #179.

🤖 Generated with Claude Code

nicolas-eoxia and others added 2 commits October 19, 2026 18:30
…x_categorie_shortener n'existe pas

Shortener héritait de SaturneObject::$isCategoryManaged = 1 : chaque
enregistrement de la fiche appelait setCategories(), donc une requête sur
llx_categorie_shortener, inexistante. dol_print_error() sortait alors avant la
redirection (headers already sent).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ect::$isCategoryManaged

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nicolas-eoxia
nicolas-eoxia merged commit 1051937 into Eoxia:develop Oct 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Shortener] Erreur SQL à l'enregistrement d'une fiche : table llx_categorie_shortener inexistante

1 participant