Skip to content

#193 [Lib] fix: get_easy_url_link() ne lit plus un lien court absent - #194

Merged
nicolas-eoxia merged 1 commit into
Eoxia:developfrom
nicolas-eoxia:fix/193-url-stats-missing-link
Oct 21, 2026
Merged

nicolas-eoxia merged 1 commit into
Eoxia:developfrom
nicolas-eoxia:fix/193-url-stats-missing-link

Conversation

@nicolas-eoxia

Copy link
Copy Markdown
Member

Sur un objet sans lien court (par exemple une commande sans lien de signature), get_easy_url_link() lisait array_options['options_easy_url_<type>_link'] sans garde. Le warning PHP s'affichait en bas de la fiche, et l'API YOURLS recevait un appel url-stats avec une URL vide.

La fonction renvoie désormais -1 quand il n'y a pas de lien, comme lorsque la configuration manque. Les deux appelants gèrent déjà ce retour.

Vérifié sur un bac à sable Dolibarr 23.0.3 : la fiche commande n'affiche plus le warning, le lien de paiement EasyURL reste affiché et php_error.log ne reçoit aucune ligne.

Closes #193

🤖 Generated with Claude Code

…sent

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nicolas-eoxia
nicolas-eoxia merged commit 9188fc4 into Eoxia:develop Oct 21, 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.

[EasyURL] Warning « Undefined array key options_easy_url_signature_link » sur les fiches sans lien court

1 participant