@@ -2026,7 +2026,7 @@ public void pageCodeClasseJava(String langueNom, JsonObject langueConfig) throws
20262026 if (classePageSimple ) {
20272027 tl (2 , langueConfig .getString (I18n .var_cVar ), ".o(new " , classeApiClasseNomSimple , "());" );
20282028 } else {
2029- tl (2 , "if(" , varResultat , "Count = = 1 && Optional.ofNullable(" , langueConfig .getString (I18n .var_requeteSite ), "_.get" , langueConfig .getString (I18n .var_RequeteService ), "().getParams().getJsonObject(\" path\" )).map(o -> o.getString(\" " , classeVarId , "\" )).orElse(null) != null)" );
2029+ tl (2 , "if(" , varResultat , "Count > = 1 && Optional.ofNullable(" , langueConfig .getString (I18n .var_requeteSite ), "_.get" , langueConfig .getString (I18n .var_RequeteService ), "().getParams().getJsonObject(\" path\" )).map(o -> o.getString(\" " , classeVarId , "\" )).orElse(null) != null)" );
20302030 tl (3 , langueConfig .getString (I18n .var_cVar ), ".o(" , langueConfig .getString (I18n .var_listeRecherche ), classeApiClasseNomSimple , "_.get(0));" );
20312031 }
20322032 tl (1 , "}" );
@@ -4263,7 +4263,7 @@ else if(classeApiMethode.contains(i18nPage.getString(I18n.var_PUTCopie)))
42634263 tl (1 , "{% if \" PATCH\" in " , i18nGlobale .getString (I18n .var_portees ), " %}" );
42644264
42654265 // recharger 1 //
4266- tl (2 , "{% if " , varResultat , "Count = = 1 %}" );
4266+ tl (2 , "{% if " , varResultat , "Count > = 1 %}" );
42674267 // s("<", composantsWebPrefixe, "tooltip content=\"", i18nPage.getString(I18n.str_Recharger), " ", classeCeNom, "\">");
42684268 tl (7 , "<" , composantsWebPrefixe , "button" , "wa-" .equals (composantsWebPrefixe ) ? " variant=\" brand\" " : " variant=\" primary\" outline" , " id=\" " , i18nPage .getString (I18n .var_recharger ), StringUtils .trim (StringUtils .capitalize (classeCe )), classeGenPageNomSimple , "\" " );
42694269 tl (9 , " onclick=\" patch{{" , i18nPage .getString (I18n .var_classeNomSimple ), "}}Vals( [ {name: 'fq', value: '" , classeVarId , ":{{" , classeVarId , "}}' } ], {}, this, function() { " , i18nPage .getString (I18n .var_ajouterLueur ), "(document.querySelector('#" , i18nPage .getString (I18n .var_recharger ), StringUtils .trim (StringUtils .capitalize (classeCe )), classeGenPageNomSimple , "')); }, function() { " , i18nPage .getString (I18n .var_ajouterErreur ), "(document.querySelector('#" , i18nPage .getString (I18n .var_recharger ), StringUtils .trim (StringUtils .capitalize (classeCe )), classeGenPageNomSimple , "')); }); return false; \" >" );
@@ -4300,12 +4300,8 @@ else if(classeApiMethode.contains(i18nPage.getString(I18n.var_PUTCopie)))
43004300 if (activerRoleAdmin ) {
43014301 tl (0 , "{% if " , i18nPage .getString (I18n .var_AUTH_PORTEE_ADMIN ), " in " , i18nGlobale .getString (I18n .var_portees ), " %}" );
43024302 }
4303- tl (1 , "{%- if " , varResultat , "Count == 1 %}" );
4304- tl (2 , "{%- if " , classeVarId , " is defined %}" );
4305- tl (3 , "{{ htm" , i18nPage .getString (I18n .var_Bouton ), "_" , classeApiOperationIdMethode , "() }}" );
4306- tl (2 , "{%- else %}" );
4307- tl (3 , "{{ htm" , i18nPage .getString (I18n .var_Bouton ), "_" , classeApiOperationIdMethode , "() }}" );
4308- tl (2 , "{%- endif %}" );
4303+ tl (1 , "{%- if " , varResultat , "Count >= 1 %}" );
4304+ tl (2 , "{{ htm" , i18nPage .getString (I18n .var_Bouton ), "_" , classeApiOperationIdMethode , "() }}" );
43094305 tl (1 , "{%- else %}" );
43104306 tl (2 , "{{ htm" , i18nPage .getString (I18n .var_Bouton ), "_" , classeApiOperationIdMethode , "() }}" );
43114307 tl (1 , "{%- endif %}" );
@@ -4316,11 +4312,8 @@ else if(classeApiMethode.contains(i18nPage.getString(I18n.var_PUTCopie)))
43164312 if (activerRoleAdmin ) {
43174313 tl (0 , "{% if " , i18nPage .getString (I18n .var_AUTH_PORTEE_ADMIN ), " in " , i18nGlobale .getString (I18n .var_portees ), " %}" );
43184314 }
4319- tl (1 , "{%- if " , varResultat , "Count == 1 %}" );
4320- tl (2 , "{%- if " , classeVarId , " is defined %}" );
4321- tl (3 , "{{ htm" , i18nPage .getString (I18n .var_Bouton ), "_" , classeApiOperationIdMethode , "() }}" );
4322- tl (2 , "{%- else %}" );
4323- tl (2 , "{%- endif %}" );
4315+ tl (1 , "{%- if " , varResultat , "Count >= 1 %}" );
4316+ tl (2 , "{{ htm" , i18nPage .getString (I18n .var_Bouton ), "_" , classeApiOperationIdMethode , "() }}" );
43244317 tl (1 , "{%- else %}" );
43254318 tl (1 , "{%- endif %}" );
43264319 if (activerRoleAdmin ) {
@@ -4354,12 +4347,8 @@ else if(classeApiMethode.contains(i18nPage.getString(I18n.var_PUTCopie)))
43544347 if (activerRoleAdmin ) {
43554348 tl (0 , "{% if " , i18nPage .getString (I18n .var_AUTH_PORTEE_ADMIN ), " in " , i18nGlobale .getString (I18n .var_portees ), " %}" );
43564349 }
4357- tl (1 , "{%- if " , varResultat , "Count == 1 %}" );
4358- tl (2 , "{%- if " , classeVarId , " is defined %}" );
4359- tl (3 , "{{ htm" , i18nPage .getString (I18n .var_Formulaire ), "_" , classeApiOperationIdMethode , "() }}" );
4360- tl (2 , "{%- else %}" );
4361- tl (3 , "{{ htm" , i18nPage .getString (I18n .var_Formulaire ), "_" , classeApiOperationIdMethode , "() }}" );
4362- tl (2 , "{%- endif %}" );
4350+ tl (1 , "{%- if " , varResultat , "Count >= 1 %}" );
4351+ tl (2 , "{{ htm" , i18nPage .getString (I18n .var_Formulaire ), "_" , classeApiOperationIdMethode , "() }}" );
43634352 tl (1 , "{%- else %}" );
43644353 tl (2 , "{{ htm" , i18nPage .getString (I18n .var_Formulaire ), "_" , classeApiOperationIdMethode , "() }}" );
43654354 tl (1 , "{%- endif %}" );
@@ -4370,11 +4359,8 @@ else if(classeApiMethode.contains(i18nPage.getString(I18n.var_PUTCopie)))
43704359 if (activerRoleAdmin ) {
43714360 tl (0 , "{% if " , i18nPage .getString (I18n .var_AUTH_PORTEE_ADMIN ), " in " , i18nGlobale .getString (I18n .var_portees ), " %}" );
43724361 }
4373- tl (1 , "{%- if " , varResultat , "Count == 1 %}" );
4374- tl (2 , "{%- if " , classeVarId , " is defined %}" );
4375- tl (3 , "{{ htm" , i18nPage .getString (I18n .var_Formulaire ), "_" , classeApiOperationIdMethode , "() }}" );
4376- tl (2 , "{%- else %}" );
4377- tl (2 , "{%- endif %}" );
4362+ tl (1 , "{%- if " , varResultat , "Count >= 1 %}" );
4363+ tl (2 , "{{ htm" , i18nPage .getString (I18n .var_Formulaire ), "_" , classeApiOperationIdMethode , "() }}" );
43784364 tl (1 , "{%- else %}" );
43794365 tl (1 , "{%- endif %}" );
43804366 if (activerRoleAdmin ) {
@@ -5440,9 +5426,8 @@ public void ecrirePageEditionJinja(String langueNom, JsonObject i18nPage) throws
54405426 ecrirePageRechercheAucun (langueNom , i18nPage );
54415427 tl (0 , "{% else %}" );
54425428
5443- tl (1 , "{% if " , varResultat , "Count = = 1 %}" );
5429+ tl (1 , "{% if " , varResultat , "Count > = 1 %}" );
54445430 // htmBodyCount1 //
5445- tl (2 , "{% if " , classeVarCleUnique , " is defined %}" );
54465431
54475432 ///////////////////
54485433 // htmBodyCount1 //
@@ -5463,9 +5448,6 @@ public void ecrirePageEditionJinja(String langueNom, JsonObject i18nPage) throws
54635448 s (classeIcone );
54645449 s (" {{ " , varResultat , "." , classeVarTitre , " | e }}" );
54655450 l ("</h1>" );
5466- tl (2 , "{% else %}" );
5467- ecrirePageRechercheAucun (langueNom , i18nPage );
5468- tl (2 , "{% endif %}" );
54695451 tl (1 , "{% else %}" );
54705452 ecrirePageRechercheAucun (langueNom , i18nPage );
54715453 tl (1 , "{% endif %}" );
0 commit comments