Problème de titre avec setDisplay dans initRefSelect

Request description

Nous ne pouvons pas afficher un titre en mettant setDisplay dans initRefSelect en v5.3
Cela fonctionne en prod avec v4.0

Steps to reproduce

This request concerns an up-to-date Simplicité instance
and these are the steps to reproduce it:

  1. Installer le module démo
  2. Modifier le code du fournisseur avec :
public void initRefSelect(ObjectDB parent) {
		super.initRefSelect(parent);
		setDisplay("Test");}
  1. Faire un clear cache rouge
  2. Se reconnecter
  3. Ouvrir le formulaire d’un Produit
  4. Sélectionner un fournisseur (utiliser la loupe)
    Le titre ne s’affiche pas, si on ferme et qu’on refait l’étape 6 on voit alors le bon titre

Technical information

Instance /health
---paste the content of your-instance.com/health---

[Platform]
Status=OK
Version=5.3.24
BuiltOn=2023-12-07 15:59
Git=5.3/29fe55f389cbc517e57851b84b9146b315b93982
Encoding=UTF-8
EndpointIP=172.24.0.3
EndpointURL=http://ed5dd139289a:8080
TimeZone=UTC
SystemDate=2023-12-13 16:40:30

[Application]
ApplicationVersion=1.0.0
ContextPath=
ContextURL=
ActiveSessions=3
TotalUsers=8
EnabledUsers=5
LastLoginDate=2023-12-13 16:40:18

[Server]
ServerInfo=Apache Tomcat/9.0.83
ServerType=WEB
ServerActiveSessions=4
ServerSessionTimeout=30
CronStarted=true

[OS]
Name=Linux
Architecture=amd64
Version=3.10.0-1160.102.1.el7.x86_64
DockerImageName=centos7
SystemEncoding=UTF-8

[JavaVM]
Version=17.0.9
Vendor=Eclipse Adoptium
VMName=OpenJDK 64-Bit Server VM
VMVersion=17.0.9+9
ScriptEngine=rhino
ScriptEngineVersion=Rhino 1.7.13 2020 09 02
HeapFree=107899
HeapSize=573440
HeapMaxSize=2007040
TotalFreeSize=1541499

[Cache]
ObjectCache=556
ObjectCacheMax=10000
ObjectCacheRatio=5
ProcessCache=556
ProcessCacheMax=10000
ProcessCacheRatio=5
APIGrantCache=0
APIGrantCacheMax=1000
APIGrantRatio=0

[Database]
Vendor=3
ProductName=PostgreSQL
ProductVersion=13.13 (Debian 13.13-1.pgdg120+1)
DriverName=PostgreSQL JDBC Driver
DriverVersion=42.7.1
DBDate=2023-12-13 16:40:30
DBDateOffset=0
DBPatchLevel=5;P03;6f1cec3ddb7615b1340daf5a9becaab3
UsingBLOBs=true

[Healthcheck]
Date=2023-12-13 16:40:30
ElapsedTime=4

Bonjour,

Je reproduis bien le comportement décrit. On va regarder d’où provient cette régression.

Sachez que vous pouvez toujours contourner cette anomalie en modifiant le libellé de l’objet pour cette instance spécifique dans le postLoad de l’objet parent :

@Override
public void postLoad() {
	if(isRefInstance()){ // Is a reference instance (object picker)
		setDisplay("Custom ref display");
	}
}

Bonjour Alistair,

Merci pour la proposition, mais on est dans un cas où on a besoin de changer le titre de la “pop-up refselect” en fonction de l’objet parent :confused:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.