[fix] Régression v3.0.8 — Invalid call dans Distributions / ContractAdmin#154
Merged
Conversation
…signature Le commit 049915f avait ajouté le commentaire et migré les appels Cron.hx mais avait omis de supprimer le ?year:Bool de la signature elle-même. View.hDate reste donc une fonction Neko à 2 arguments — les templates l'appelant avec 1 argument produisent toujours "Invalid call". Ce commit supprime le paramètre optionnel pour de bon. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
InterAMAP44
approved these changes
Jun 28, 2026
Mandrak-Kimigo
added a commit
that referenced
this pull request
Jun 28, 2026
) * fix: View.hDate — retirer effectivement le paramètre optionnel de la signature (#154) Le commit 049915f avait ajouté le commentaire et migré les appels Cron.hx mais avait omis de supprimer le ?year:Bool de la signature elle-même. View.hDate reste donc une fonction Neko à 2 arguments — les templates l'appelant avec 1 argument produisent toujours "Invalid call". Ce commit supprime le paramètre optionnel pour de bon. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contexte
La v3.0.8 a introduit une régression sur plusieurs pages (Distributions,
ContractAdmin/selectDistrib, ContractAdmin/distributions) avec l'erreur
Invalid calldéclenchée par des appels à::hDate(d.date)::dansles templates Templo.
Cause
Le commit bdbbd8d a ajouté
?year:Bool = falseàView.hDate. Nekocompile cette fonction à 2 arguments ; Templo l'appelle avec 1 → crash.
(cf.
BaseView.hx: "templo doesnt manage optional params in functions")Commits inclus
049915f— commentaire + migration Cron.hx / VolunteerService.hxd8300af— fixInvalid operation (*)dans orders.mtt?yeardans la signature deView.hDateTest
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com