Projet

Général

Profil

Anomalie #6179

Mis à jour par Charles Bonnissent il y a environ 10 ans

Soit une application ayant : 

 * un paramètre avec la définition suivante : 

 <pre> 
     "SEARCH_NAME" => array( 
         "val" => "", 
         "descr" => N_("SIMPLE_LIST:Current Search") 
     ) 
 </pre> 

 * une action contenant  

 <pre> 
 $action->lay->eSet("SEARCH_NAME", "toto".ApplicationParameterManager::getParameterValue(ApplicationParameterManager::CURRENT_APPLICATION, "SEARCH_NAME")); 
 </pre> 

 * un template contenant  

 <pre> 
     window.conf = window.conf || {}; 
     window.conf.searchName = "[SEARCH_NAME]"; 
 </pre> 

 SEARCH_NAME = "truc" 

 Ce qui est généré est : 

 <pre> 
   window.conf = window.conf || {}; 
   window.conf.searchName = "truc"; 
 </pre> 

 On attend bien évidemment "tototruc"  

 Les raisons qui poussent à attendre la valeur redéfinie sont : 

 * pouvoir choisir l'échappement (eSet ou pas set), 
 * pouvoir ajouter des paramètres applicatifs sont pour autant casser des templates existant

Retour