Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug dans la boucle entrees_raccourcis. #99

Open
SylDanh opened this issue Oct 26, 2021 · 0 comments
Open

Bug dans la boucle entrees_raccourcis. #99

SylDanh opened this issue Oct 26, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@SylDanh
Copy link

SylDanh commented Oct 26, 2021

Bonjour,

dans le fichier macros_entrees, la boucle entrees_raccourcis pose problème.
https://github.com/edinum/nova/blob/ebb1019646d6d2f7283a882e2678ceafd8711954/macros_entrees.html#L40-L44
Le résultat de la requête est bon, mais les variables [#NBLIGNES] & [#NBRESULTATS] retourne le nombre d'item sans le DISTINCT.

Ce qui pose problème dans les conditions qui suivent.
<IF COND="[#NBLIGNES] GT 1">
Pour palier à ce problème, j'ai corrigé en supprimant DISTINCT() et ajoutant GROUPBY="idtype"

<LOOP NAME="entrees_raccourcis" TABLE="entrytypes, entries" SELECT="idtype, type, title, altertitle, lang" WHERE="type LIKE 'mot%cle%' AND entries.idtype = entrytypes.id" ORDER="entrytypes.rank" GROUPBY="idtype">

@brrd brrd added the bug Something isn't working label Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants